Boost.Python tries to link against python27.lib using Visual C++

我是研究僧i 提交于 2020-01-25 10:51:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!