If you try to compile it with such a command

bjam --toolset=gcc "--prefix=c:\mingw\include\boost\install" install 

writes:

 C:\MinGW\include\boost\boost_1_47_0>bjam --toolset=gcc "--prefix=c:\mingw\include\boost\install" install warning: mismatched versions of Boost.Build engine and core warning: Boost.Build engine (bjam) is 03.1.18 warning: Boost.Build core (at C:/MinGW/include/boost/boost_1_47_0/tools/build/v2) is 2011.04-svn C:/MinGW/include/boost/boost_1_47_0/tools/build/v2/tools\gcc.jam:129: in gcc.init from module gcc error: toolset gcc initialization: error: no command provided, default command 'g++' not found error: initialized from C:/MinGW/include/boost/boost_1_47_0/tools/build/v2/build\toolset.jam:38: in toolset.using from mod ule toolset C:/MinGW/include/boost/boost_1_47_0/tools/build/v2\build-system.jam:481: in process-explicit-tools et-requests from module build-system C:/MinGW/include/boost/boost_1_47_0/tools/build/v2\build-system.jam:562: in load from module build -system C:\MinGW\include\boost\boost_1_47_0\tools\build\v2/kernel\modules.jam:283: in import from module m odules C:\MinGW\include\boost\boost_1_47_0\tools\build\v2\kernel\bootstrap.jam:142: in boost-build from m odule C:\MinGW\include\boost\boost_1_47_0\boost-build.jam:17: in module scope from module 

I have already tried the tools, and that is not only this, but the result is always the same.

  • Versions of bjam and Boost.Build core do not correspond to each other (though a warning, but if it doesn’t work, then it’s better nafig). Is everything OK with previous (or stable) versions? And the fact that there is no compiler in the visible surroundings - is this normal (default command 'g ++' not found)? - alexlz

1 answer 1

Here is the main error: no command provided, default command 'g++' not found .

Try running g++ from MSYS / cmd , if it doesn't work, then you need to install it (for example, via mingw-get ).