Python windows中的Boost安装问题

Python windows中的Boost安装问题,python,c++,gcc,boost,Python,C++,Gcc,Boost,我正在根据Windows官方网站上给出的说明安装boost_1_60_0 是我正在运行的命令,用于在C++中为我的项目安装Boost。 boost_1_60_0>b2 -j8 --toolset=gcc --build-dir=C:\mycode\src\threadsupport\boost_1_60_0\build --build-type=complete stage 这给了我一些与Python相关的错误,尽管我已经安装了Python 2.7.11 以下是错误日志: b

我正在根据Windows官方网站上给出的说明安装boost_1_60_0

是我正在运行的命令,用于在C++中为我的项目安装Boost。

boost_1_60_0>b2 -j8 --toolset=gcc  --build-dir=C:\mycode\src\threadsupport\boost_1_60_0\build  --build-type=complete  stage
这给了我一些与Python相关的错误,尽管我已经安装了Python 2.7.11

以下是错误日志:

boost_1_60_0\build\boost\bin.v2\libs\python\build\gcc-mingw-4.8.1\release\numeric.o:numeric.cpp:(.text+0x20f9): undefined reference to `_imp__PyInt_FromLong'
boost_1_60_0\build\boost\bin.v2\libs\python\build\gcc-mingw-4.8.1\release\numeric.o:numeric.cpp:(.text+0x2138): undefined reference to `_imp__PyEval_CallFunction'
boost_1_60_0\build\boost\bin.v2\libs\python\build\gcc-mingw-4.8.1\release\numeric.o:numeric.cpp:(.text+0x228b): undefined reference to `_imp__PyString_FromStringAndSize'
boost_1_60_0\build\boost\bin.v2\libs\python\build\gcc-mingw-4.8.1\release\numeric.o:numeric.cpp:(.text+0x22ad): undefined reference to `_imp__PyImport_Import'

有很多类似类型的错误即将出现。任何关于这方面的帮助都将不胜感激。

也有很多问题,这些简单的步骤为我解决了问题

步骤1:

bootstrap.bat
步骤2:

b2 toolset=msvc link=shared threading=multi --build-type=complete stage

在调用
b2
之前,您是否运行了
bootstrap.bat mingw
?我刚刚在
bootstrap.bat mingw
之后运行了
b2工具集=gcc link=shared threading=multi--build type=complete stage
,而且我在
windows7
windows10
上的任何版本的
boost
上都没有问题。我不知道;不要使用python,这可能是个问题,也可能是命令的语法问题。我不知道;我不认为
toolset=gcc
前面应该有
-
。@kenba:我使用的是你建议的同一个命令。@kenba:在调试错误时,我发现了以下错误:任何关于它的反馈都将不胜感激:C:\boost\boost\u 1\u 60\u 0/libs/coroutine/src/detail/coroutine\u context.cpp:71:未定义的引用`_imp\uuuu jump\u fcontext“collect2.exe:错误:ld返回了1个出口status@kenba:仍然收到相同的错误:(