Boost.Python尝试使用Visual C ++链接到python27.lib [英] Boost.Python tries to link against python27.lib using Visual C++
问题描述
我正在尝试使用Python 3.2构建boost python.我链接到python32.lib和libboost_python3-vc110-mt-gd-1_52.lib.我还定义了BOOST_ALL_NO_LIB以禁用Boost的自动链接功能.
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.
仍然出现以下错误:
fatal error LNK1104: cannot open file 'python27.lib'
如何告诉boost使用Python 3.2?
How to tell boost to use Python 3.2?
推荐答案
您的计算机上是否安装了多个Python?
Do you have multiple Python installations on your computer?
您可能必须创建一个包含以下内容的user-config.jam
文件:
You probably have to create a user-config.jam
file with content like this:
using python : 3.2 : C:\Path\To\Python\python.exe ;
请参阅: http://www.boost.org/doc/libs/1_53_0/libs/python/doc/building.html#configuring-boost-build
这篇关于Boost.Python尝试使用Visual C ++链接到python27.lib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!