- Extract downloaded boost source, e.g.
F:\boost_1_67_0. - Create a folder for Boost.Build installation, e.g.
F:\boost-build. - Create a folder within for building, i.e.
F:\boost_1_67_0\build. - Create a folder for installation, e.g.
F:\boost.
- Open Command Prompt.
- Run
g++ --version. - If the output contains g++ version number then GCC should be set up properly to run from command line and you can continue.
- Open Command Prompt and navigate to
F:\boost_1_67_0\tools\build. - Run
bootstrap.bat gcc. - Run
b2 install --prefix="F:\boost-build". - Add
F:\boost-build\binto Windows PATH.
- Open Command Prompt and navigate to
F:\boost_1_67_0. - Run
b2 --build-dir="F:\boost_1_67_0\build" --prefix="F:\boost" toolset=gcc install -jX
replace X by [2 or 4 or 8] based on your cpu-core to speed up things.
- Add include folder, i.e.
F:\boost\include\boost-1_67. - Add linker folder, i.e.
F:\boost\lib. - Link required libraries, e.g.
libboost_regex-mgw81-mt-d-x32-1_67.a.