【发布时间】:2015-10-12 13:05:24
【问题描述】:
我喜欢使用(新)Visual Studio 2015(企业版)构建 boost 1.58.0。过去我是这样进行的:
- 从www.boost.org下载boost 1.58.0
- 解压文件(例如
C:\thirdparty\vs2013\x64\boost_1_58_0) - 启动 Visual Studio 2013 x64 命令提示符 (
VS2013 x64 Native Tools Command Prompt) - 更改为 boost 目录(例如
cd C:\thirdparty\vs2013\x64\boost_1_58_0) - 执行
.\bootstrap.bat - 执行
.\b2 -j8 --toolset=msvc-14.0 address-model=64 --build-type=complete stage - b2 -j8 --toolset=msvc-12.0 address-model=64 --build-type=complete stage --with-python
但是在 VS2015 中没有 VS2015 命令提示符。
还缺少我有时用来设置 VS2013 命令提示符的 vcvarsall.bat。
如何使用VS2015编译boost源代码?
【问题讨论】:
-
刚刚发现 VS2015 的开发人员命令提示符... mmh...
-
您很可能会遇到“未知编译器版本”问题,因为 boost 1.58 不了解 VS2015。如果是这样,请关注this
-
您还没有说出您实际遇到的问题。你有错误吗?什么错误?您是否考虑过在 Boost User 邮件列表中询问?
-
@GrafikRobot 我正在尝试构建 Qt,但我遇到了同样的问题。找不到快捷方式。
-
@GrafikRobot:我应该使用哪个命令或工具来成功运行 bootstrap.bat?
标签: c++ boost visual-studio-2015 b2