How to build Boost 1.60 with Visual Studio 2015

By , last updated August 10, 2019

C++ Boost 1.60 library can be downloaded from http://www.boost.org/users/history/version_1_60_0.html.

Other Boost and Visual Studio versions:
Building Boost 1.64 with Visual Studio 2017
Building Boost 1.62 with Visual Studio 2015
Boost 1.58 for 32-bit and 64-bit architectures with Visual Studio 2013

Building Boost 1.60

Here is a quick howto for Windows and Visual Studio 2015.

1) Download and extract either the .7z or .zip archive.

2) Create a file named build_boost_1_60_vs2015.bat in the same folder as the directory named boost_1_60_0 with contents like this:

call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" x86

cd boost_1_60_0
call bootstrap.bat

rem Most libraries can be static libs
b2 -j8 toolset=msvc-14.0 address-model=64 architecture=x86 link=static threading=multi runtime-link=shared --build-type=minimal stage --stagedir=stage/x64
b2 -j8 toolset=msvc-14.0 address-model=32 architecture=x86 link=static threading=multi runtime-link=shared --build-type=minimal stage --stagedir=stage/win32

pause

Run the build_boost_1_60_vs2015.bat file and wait until it finishes.

Finished building Boost 1.60

Using Boost 1.60 with VS2015

There are a couple ways to use Boost 1.60 with Visual Studio 2013 or 2015, here are two ways. Property pages and Property sheets.

All scripts are available at GitHub.