# (C++) Installing Boost under Windows

To install Boost under Windows, just follow the procedure described by [1].

A downloaded zip of Boost was extracted in 'E:/Projects/Libraries/boost_1_54_0', but it does not seem to matter where to put these, as the next commands install the Boost libraries at their default locations.

First, add the GCC path to the PATH (for me, this was 'E:\Qt\Qt5.0.1\Tools\mingw48_32\bin', I verified that g++.exe is present in that folder). Then, from the command line, in the Boost folder (for me, this was: 'E:/Projects/Libraries/boost_1_54_0'), type:

 ``` bootstrap gcc b2 bjam --toolset=gcc ```

The 'gcc' toolset comes with Qt Creator.

 ``` RBilderbeek@AIRBEAR-W7-I5 /D/Projects/Libraries (develop) \$ cd boost_1_55_0 RBilderbeek@AIRBEAR-W7-I5 /D/Projects/Libraries/boost_1_55_0 (develop) \$ ./bootstrap.bat RBilderbeek@AIRBEAR-W7-I5 /D/Projects/Libraries/boost_1_55_0 (develop) \$ ./bjam.exe toolset=gcc link=static threading=multi --layout=versioned --prefix=c:/Boost --without-context install ```

## Possible Installing Boost under Windows problems

• 'cl' is not recognized as an internal or external command, operable program or batch file: do not use bjam without mentioning a toolset, but choose a toolset and use the command 'bjam --toolset=gcc' (for the GCC toolset).