1. Download
Official website: http://www.boost.org/
Home: https://sourceforge.net/projects/boost/
Current Latest Version: V1.61.0
2. Compiling
First, generate the Bjam and B2 tools.
The library file is then generated for different versions of MSVC.
Name |
VS version |
msvc-6.0 |
VS6.0 |
msvc-7.0 |
VS2003 |
msvc-8.0 |
VS2005 |
msvc-9.0 |
VS2008 |
msvc-10.0 |
VS2010 |
VS2005:
Bjam stage--toolset=msvc-8.0 --without-graph--without-graph_parallel--without-math--without-mpi-- Without-python--without-serialization--without-wave--stagedir="C:\boost\bin\vc8" Link=static runtime-link=shared runtime-link=static threading=multi Debug Release
View Code
VS2010:
Bjam stage--toolset=msvc-10.0 --without-graph--without-graph_parallel--without-math--without-mpi-- Without-python--without-serialization--without-wave--stagedir="C:\boost\bin\vc10" Link=static runtime-link=shared runtime-link=static threading=multi Debug Release
3. Use
(1) header file
Copy C:\boost_1_61_0\boost folder to C:\boost
(2) IDE settings
A. header file reference
Project->properties->configuration properties->c/c++->general
Additional Include Directories: Add root directory in (1).
B. Library Links
Project->properties->configuration properties->linker->general
Additional Library Directories: Adding the Build repository directory
Reference Documentation:
1. Builtin Tools
Http://www.boost.org/build/doc/html/bbv2/reference/tools.html#bbv2.reference.tools.compiler.msvc
2. Boost download Install compile Configuration Usage guide (including Windows, Linux, and arm Linux)
Http://www.cnblogs.com/wondering/archive/2009/05/21/boost_setup.html
Installing the Boost library (Windows)