c++ - 使用 Bootstrap/BoostBuild 和 Visual Studio 2015 安装 boost

标签 c++ boost

回想起一个老话题,我注意到 here 中描述的解决方法无法在我的电脑上运行(Windows 7、Visual Studio 2015 Community Edition/Update 3)。隐藏指定目录后,bootstrap 会产生典型的错误消息:

c:\boost_1_64_0>bootstrap
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 文件中:

...
c:\boost_1_64_0\tools\build\src\engine\jam.h(71): fatal error C1034: ctype.h: Kein Suchpfad für Headerdateien vorhanden (no include path set)
compile.c
c:\boost_1_64_0\tools\build\src\engine\jam.h(71): fatal error C1034: ctype.h: Kein Suchpfad für Headerdateien vorhanden (no include path set)
constants.c
debug.c

等等

有没有人知道如何解决这个问题?或者我可以在 Visual Studio 的 UI 中构建 boost 库吗?

提前致谢

罗伯特

最佳答案

遇到和你一样的问题。 我在系统环境变量path中添加c:\windows\system32后问题解决。

关于c++ - 使用 Bootstrap/BoostBuild 和 Visual Studio 2015 安装 boost,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45456251/

相关文章:

C++ 重载映射 [ ] 运算符

c++ - 为什么随机数生成不对?

c++ - 在 IOS 上打印漂亮的大数字 C++

c++ - boost::geometry::model::linestring 与 boost::geometry::model::polygon 的交集

c++ - 在 vtk 中用 RGB 保存网格

c++ - 在这种情况下,如何在 C++ 中正确地将成员函数作为参数传递?

c++ - boost::lexical_cast 到 std::string 什么时候失败?

c++ - boost 属性树 : How to delete the specified parameters of the node

c++ - Make在Boost中找不到.hpp文件