擅长:python、mysql、java
<p>bjam用于编译boost本身(尽管您也可以将其用作代码的配置工具)。运行该实用程序应该编译库,并且不需要任何进一步的工作,afaik。
据我所知,您在第二篇文章中列出的include和library路径是正确的(假设您列出的目录的路径是正确的,例如:C:\Python27\include)。在</p>
<p>当我玩的时候boost.python我发现我不能用安装的Python 64位版本编译任何C++/Python库。我首先不得不删除64位版本并安装32位版本。在</p>
<p>另外,只有在<code>#include</code>语句之前包含<code>#define BOOST_PYTHON_STATIC_LIB</code>,编译才会成功。我还是不明白为什么。在</p>
<p>我希望我的回答(我第一次在这个网站上,所以不要对我太苛刻;)有任何用处。在</p>