Home  >  Article  >  Backend Development  >  How to Install Boost 1.60.0 on Windows?

How to Install Boost 1.60.0 on Windows?

Mary-Kate Olsen
Mary-Kate OlsenOriginal
2024-11-04 09:17:30189browse

How to Install Boost 1.60.0 on Windows?

Boost 1.60.0 .zip Installation on Windows

You have successfully downloaded Boost 1.60.0 for Windows 7 and built the necessary executables. To proceed further with the installation:

1. Set BOOST_ROOT Environment Variable:

As recommended by the Boost user guide, create an environment variable named BOOST_ROOT and set its value to the location of the Boost directory.

2. Build Boost Libraries:

For Visual Studio 2015 (Static Libraries):

cd boost_1_xx_0
call bootstrap.bat
b2 -j8 toolset=msvc-14.0 address-model=64 architecture=x86 link=static threading=multi runtime-link=shared --build-type=complete stage
2>&1 | tee msvc_static_build.txt

For Visual Studio 2015 (Dynamic Thread Library):

b2 -j8 toolset=msvc-14.0 address-model=64 architecture=x86 link=shared threading=multi runtime-link=shared --with-thread --build-type=minimal stage
2>&1 | tee msvc_thread_build.txt

For Visual Studio 2015 (All Dynamic Libraries):

b2 -j8 toolset=msvc-14.0 address-model=64 architecture=x86 link=shared threading=multi runtime-link=shared --build-type=complete stage
2>&1 | tee msvc_dynamic_build.txt

For MinGW (Shared Libraries):

cd boost_1_xx_0
bootstrap.bat mingw

b2 toolset=gcc link=shared threading=multi --build-type=complete stage
2>&1 | tee mingw_build.txt

Once the build process is complete, you will have successfully installed Boost 1.60.0 on your Windows machine.

The above is the detailed content of How to Install Boost 1.60.0 on Windows?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn