繁体   English   中英

提升Windows中的安装问题

[英]Boost installation issue in windows

我正在根据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 2.7.11,这也会给我一些与Python相关的错误。

下面是错误日志:

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM