簡體   English   中英

Boost.Python不是.lib

[英]Boost.Python not the .lib

我認為我已經正確構建了它。 我還有其他的Boost庫正在工作。 我收到以下錯誤

錯誤: SNK1104無法打開文件'boost_pythonPY_MAJOR_VERSIONPY_MINOR_VERSION-vc141-mt-x32-1_67.lib'。

我在使用Visual Studios並帶有Boost 1.67的Windows上

眾所周知, boost-python很難安裝。 從源代碼構建時,請確保指定with-python 像這樣:

下載並配置Boost

cd boost_1_55_0\tools\build\v2\engine
build.bat mingw

將此添加到您的路徑

C:\boost_1_55_0\tools\build\v2\engine\bin.ntx86

從源代碼構建

bjam toolset=gcc --with-python link=shared

將此添加到您的路徑

C:\boost_1_55_0\stage\lib

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM