vs2015 Configuring boost
1, first to the Boost website to download the latest version of the Boost library:
http://www.boost.org/
http://www.boost.org/users/download/
2. Unzip the file and open it to the root of the boost library at the command prompt:
Double-click the Bootstrap.bat file, generate Bjam.exe, and execute the following command:
Bjam--toolset=msvc--build-type=complete Stage//32-bit
B2.exe--build-type=complete--stagedir= ". \lib\vc12_x64" address-model=64//64-bit
or simply double-click Bjam.exe.
Waiting for the program to compile, about two hours, will be generated in the boost root directory Bin.v2 and stage two folders, where Bin.v2 is generated intermediate files, the size of about 2.7G, can be directly deleted. The DLL and LIB files are generated under stage.
3. Open vs:
View, property Manager, current project->debug| Win32->microsoft.cpp.win32.user Double-click
In the Properties dialog box that pops up:
Common Properties->vc++ directory: "Include directory": Boost root directory, example: D:\Visual Stdio 2013\lipeng\boost\boost_1_58_0
Library Directory: link library directory under stage, example: D:\Visual Stdio 2013\lipeng\boost\boost_1_58_0\stage\lib
Generic properties, Linker, General: "Additional library directory": Same as above "library directory", example: D:\Visual Stdio 2013\lipeng\boost\boost_1_58_0\stage\lib
For some problem solving:
1.Unknown compiler version while compiling Boost with MSVC 14.0 (VS 2015)
To stop Boost 1.58 complaining about unknown compiler version edit boost/config/compiler/visualc.hpp and replace:
Last known and checked version is 19.00.22129 (VC14 Preview):
#if (_msc_ver > 1800 && _msc_full_ver > 190022310)
With:
Last known and checked version is 19.00.22816 (VC + + RC):
#if (_msc_ver > 1800 && _msc_full_ver > 190022816)
Which you can find is already do in boost repo here for upcoming boost 1.59 release.
Update:for Visual Studio RTM set it to:
Last known and checked version is 19.00.23026 (VC + +):
#if (_msc_ver > 1800 && _msc_full_ver > 19 0023026)
Update2:for Visual Studio Update 1 set it to:
Last known and checked version is 19.00.23506 (VC + + Update 1):
#if (_msc_ver > 1800 && _msc_full_ve R > 190023506)
Related articles:
1.http://www.jianshu.com/p/de1fda741beb