build build.bat不能被识别为程序

Building build.bat is not recognized as a program

本文关键字:build 程序 识别 bat 不能      更新时间:2023-10-16

我正在尝试使用文件系统库构建Boost。

我明白我必须运行bootstrap.bat (for Windows)来创建一个b2应用程序,我应该运行之后。

但是我得到这个错误:

C:UsersAndrei>D:Infoincludeboost_1_58_0toolsbuildbootstrap.bat
Bootstrapping the build engine
The system cannot find the path specified.
'.build.bat' is not recognized as an internal or external command,
operable program or batch file.
Failed to bootstrap the build engine
Please consult bootstrap.log for furter diagnostics.

我找不到build.bat或日志文件。

我该如何解决这个问题?我读到必须构建它才能获得文件系统库。是真的吗?

您应该在执行bootstrap.bat之前将cd放入boost构建目录。

cd D:Infoincludeboost_1_58_0toolsbuild
bootstrap.bat