构建Boost.Build引擎'cl'不被识别为内部或外部命令,可操作程序或批处理文件

Kur*_*Koi 7 boost

有人能告诉我为什么bootstrap.bat失败了吗?

平台:
Windows 10
Boost boost_1_63_0

C:\Boost\boost_1_63_0>bootstrap.bat
Building Boost.Build engine
'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 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.

C:\Boost\boost_1_63_0>
Run Code Online (Sandbox Code Playgroud)

小智 25

正如我在使用msvc 14.1(VS2017 RC)的Build boost中找到的答案

您需要使用Visual Studio 2017的开发人员命令提示符!

它出现在开始 - 所有程序 - Visual Studio 2017 - Visual Studio工具 - VS 2017开发人员命令提示符中

  • `VS2017的开发人员命令提示符`compile-c-c ++ bin.v2\libs\system\build\msvc-14.1\debug\address-model-64\threadin g-multi\error_code.obj'cl'未被识别为内部或外部命令,可操作程序或批处理文件. (2认同)

And*_*hev 2

该错误表明未找到编译器。最可能的原因是:

  • 编译器未安装或安装在非标准路径中。
  • 您的编译器是Visual Studio 2017,Boost 1.63不支持该编译器,并且由于微软的更改而无法自动找到。

如果您使用的是 Visual Studio,您可以尝试从编译器命令行提示符运行 bootstrap。