C++ - Build boost library with MinGW

less than 1 minute read

1. build bjam with boostrap.bat
Example)
bootstrap gcc

2. run the following command
b2 toolset=gcc --build-type=complete architecture=x86 address-model=32 --prefix=h:\develop_lib\BOOST --libdir=h:\develop_lib\BOOST\lib\1_59\x86-mingw install

3. for 64 bits, you should install MinGW 64bits then change address-model from 32 to 64.
Example)
b2 toolset=gcc --build-type=complete architecture=x86 address-model=64 --prefix=h:\develop_lib\BOOST --libdir=h:\develope_lib\BOOST\lib\1_59\x64-mingw install