Installing the Boost library (Windows)

Source: Internet
Author: User

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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.