Download boost and generate Bjam.exe file
To Google site search download boost_1.52 version of the library, after the download is complete, extract to the x: Under, this address itself casually defined. In the extracted files to search for the BUILD.bat file, write it down in the directory, into the DOS environment using the CD command into the BUILD.bat file directory, enter the command: "Build MinGW", will be generated in this directory bin.ntx86\ Jam.exe and B2.exe files, as long as the Bjam.exe is copied to the root of the source file (as shown).
- 2
Compiling and installing the Boost library
Enter the DOS environment, use the CD command to enter the root of the extracted boost file, enter the Bjam--toolset=gcc--prefix=c:\boost install to compile, this command will install the compiled boost file to the C:\boost
Note: There are no spaces in the command line, the folder name can be taken arbitrarily, but a folder name can only be a word, not two or more than two words separated by a space, otherwise the compilation fails.
- 3
Codeblocks Configuring the Boost library
Settings->compiler and Debugger settings->linkersettings-><%boost installation directory%>/lib/*.lib
Settings->compiler and Debugger settings->searchdirectories-Compiler-><%boost installation directory%>/include/ boost-1_39
Settings->compiler and Debugger settings->searchdirectories-Linker-><%boost installation directory%>/lib
Boost compilation, Windows platform