I used dependency walker and found out that VS did not link to boost_python3_...
but to boost_python_...
. I removed the non 3 version, but now the linker complains that it cannot find boost_python-vc140-mt-1_60.lib
. What do I have to do do link with the Python 3 boost library? Or are the non 3 versions also used for python 3?
I had the same problem, these are options that worked well for me:
Go to boost/python/detail/config.hpp and change BOOST_LIB_NAMe to boost_python3 instead of boost_python.
Turn auto Linkage of by defining BOOST_ALL_NO_LIB and then explicitly set boost_python3...lib as linker dependency.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.