Search code examples
c++boost

Building boost - build.bat is not recognized as a program


I am trying to build Boost for using the filesystem library.

I understand that I must run bootstrap.bat (for Windows) to create a b2 application, that should I run after.

But I get this errors:

C:\Users\Andrei>D:\Info\include\boost_1_58_0\tools\build\bootstrap.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.

I haven't find build.bat or the log file..

How can I solve this problem ? I read that I must build it to get filesystem libs. It's this true ?

Thank you very much.


Solution

  • You should cd into the boost build directory before executing bootstrap.bat.

    Try

    cd D:\Info\include\boost_1_58_0\tools\build\
    bootstrap.bat