I am currently working on framing a python wrapper for a cpp project that has boost c++ library dependency for compilation and requires compiler with c++11 support. i use macOS High Sierra 10.13.2..On checking the clang version i get this
I added -stdlib=libc++ in extension module of setup.py. But then met with the following :[error: invalid use of non-static data member]
Then one of the SO answers suggested to use -std=c++11 or -std=libc++. On including one of the above, c++ libraries doesn't get linked(which would get linked when -stdlib=libc++ is added). so i get : fatal error: 'random' file not found
how to solve it? can i include both the libraries. is my way of reasoning out the error correct or am i misled?. Would be glad for any help on this. Thanks in advance!
Aucun commentaire:
Enregistrer un commentaire