问题
I'm trying to build boost python using Python 3.2. I'm linking against python32.lib and libboost_python3-vc110-mt-gd-1_52.lib. I also definied BOOST_ALL_NO_LIB to disable boost's auto link feature.
Still I'm getting the following error:
fatal error LNK1104: cannot open file 'python27.lib'
How to tell boost to use Python 3.2?
回答1:
Do you have multiple Python installations on your computer?
You probably have to create a user-config.jam
file with content like this:
using python : 3.2 : C:\Path\To\Python\python.exe ;
See: http://www.boost.org/doc/libs/1_53_0/libs/python/doc/building.html#configuring-boost-build
来源:https://stackoverflow.com/questions/14188809/boost-python-tries-to-link-against-python27-lib-using-visual-c