- Download boost from boost.org.
- Unpack boost to some place.
- Run either .\bootstrap.bat (on Windows), or ./bootstrap.sh (on other operating systems) under boost folder.
Run with following script will build the necessary subset:
bjam install --prefix="<your boost install folder>" --with-system --with-date_time --with-random link=static runtime-link=shared threading=multi
Optionally You can merge all output .lib files into a fat one,especially if you're not using cmake.
In output folder, run:
lib.exe /OUT:boost.lib *