Boost.Python不是.lib

问题描述 投票:0回答:1

我想我已经正确地构建了它。我有其他的boost库工作。我收到以下错误

错误:SNK1104无法打开文件'boost_pythonPY_MAJOR_VERSIONPY_MINOR_VERSION-vc141-mt-x32-1_67.lib'。

我在Windows上使用Visual Studios,增强1.67

c++ boost boost-python
1个回答
1
投票

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
© www.soinside.com 2019 - 2024. All rights reserved.