【发布时间】:2015-12-27 17:35:21
【问题描述】:
我使用了Boost 提供的Getting Started Guide。
许多具有某种相关性质的现有问题似乎发生在 Visual Studio 中,并且是由于错误的项目设置和链接造成的。
我的问题在于实际上让 Boost 使用
Developer Command Prompt for VS2015 构建并以管理员身份运行。
首先我只是解压文件夹并从根文件夹运行 VS2015 命令提示符
bootstrap.bat
这给了我以下输出
C:\Program Files (x86)\boost\boost_1_60_0>bootstrap.bat
Building Boost.Build engine
Failed to build Boost.Build engine.
Please consult bootstrap.log for further diagnostics.
You can try to obtain a prebuilt binary from
http://sf.net/project/showfiles.php?group_id=7586&package_id=72941
Also, you can file an issue at http://svn.boost.org
Please attach bootstrap.log in that case.
根据bootstrap.log,很多需要的头文件都没有找到。根据Visual C++ Team Blog,标头、源代码和库现在分布在用户机器上的不同位置。这发生在我身上!我必须移动大量的头文件和 lib 文件才能找到它们。
但是......我不知道从这一点开始。
【问题讨论】:
-
似乎和平台有关,即32位或64位。确保您正在运行正确的命令提示符
-
@Default 就是这样!我运行了位于(Visual Studio 工具)目录中的(VS2015 x64 本机工具命令提示符),它成功了! Boost 启动并运行!将其发布为答案,我会接受!
标签: c++ boost visual-studio-2015