注意:我已经看到了this这样的问题,但我认为这个问题并不清楚,解决方案也没有涵盖我遇到过的问题。
我从sourceforge下载了boost 1.55并将其解压缩到C:\ My Programs \目录。当我尝试运行bootstrap.bat文件(REF)时出现错误:
C:\Users\pollexb\git_repositories\modular-boost>bootstrap.bat
Building Boost.Build engine
'"VCVARS32.BAT"' is not recognized as an internal or external command
operable program or batch file.
'"VCVARS32.BAT"' is not recognized as an internal or external command
operable program or batch file.
'"VCVARS32.BAT"' is not recognized as an internal or external command
operable program or batch file.
'"VCVARS32.BAT"' is not recognized as an internal or external command
operable program or batch file.
'cl' is not recognized as an internal or external command,
operable program or batch file.
Failed to build Boost.Build engine.
Please consult bootstrap.log for furter 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.
有什么问题&我该如何解决?
答案 0 :(得分:1)
Boost 1.55似乎与bootstrap.bat工作有问题(REF)。最简单的解决方案是下载&安装Boost 1.54。
答案 1 :(得分:0)
我在2年后回答了这个问题,因为我对提升1.60有同样的问题。
看起来您没有安装Visual Studio。显然bootstrap.bat假定你有默认值,否则你应该指出你想要使用的编译器工具链。作为一个例子,我必须输入" boostrap.bat mingw "。