我遇到与boost
python链接的问题.
我正在使用Visual Studio 2017并使用以下命令行编译boost 1_64包:
b2 -a toolset=msvc-14.1 --build_type=complete stage variant=debugthreading=multi link=shared runtime-link=shared define=_ITERATOR_DEBUG_LEVEL=0 address-model=64
使用此user-config.jam:
using python
: 3.6 # Version
: C:\\Python36\\python.exe # Python Path
: C:\\Python36\\include # include path
: C:\\Python36\\libs # lib path(s)
: BOOST_ALL_NO_LIB=1
;
但是在使用运行时库建立我的c项目时:多线程DLL(/ MD)我不断收到此错误消息:
Error LNK1104 cannot open file 'boost_python-vc141-mt-gd-1_64.lib'
但我编译的boost库包含以下boost_python文件:
boost_python3-vc141-mt-gd-1_64.dll
boost_python3-vc141-mt-gd-1_64.lib
有人有python 3的增强经验吗?经过几个小时的尝试,我找不到一个好的解决方案.
顺便说一句:将文件重命名为boost_python-(删除3)工作正常.<