vs2013 under boost1.57 compilation

Source: Internet
Author: User

Reference: http://www.cnblogs.com/lidabo/p/3782193.html

Environment: windows8.1,vs2013,boost1.57

Need to use boost, compile a boost to use it.

First, download

http://sourceforge.net/projects/boost/files/boost/1.57.0/, can download a BZ compressed file smaller, and extract files to the directory such as E:\thirdlib\boost_1_ 57_0.


Second, compile

1. Open the visual Studio x86 native Tools command Prompt window

2. Enter the corresponding directory

CD E:\thirdlib\boost_1_57_0\tools\build

3. Executive Bootstrap.bat

The bjam.exe file is generated in E:\third lib\boost_1_57_0\tools\build .

4.Copy Bjam.exe to boost's root directory

Copy Bjam.exe to E:\thirdlib\boost_1_57_0

6. Enter the boost root directory

CD E:\thirdlib\boost_1_57_0

7. Execute the Bjam.exe compile command as follows:

You can compile static libraries and dynamic libraries, and personally recommend compiling static libraries.

(1) compile all boost static libraries (Release|debug), including header files and library files

Bjam--toolset=msvc-12.0--prefix=E:\thirdlib\boost_1_57_0 \output--without-python--build-type=complete link=static runtime-link=static threading=multi Install

(2) Compile all boost dynamic libraries (release|debug), including header files and library files

Bjam--toolset=msvc-12.0--prefix=E:\thirdlib\boost_1_57_0 \Output--without-python--build-type= Complete link=shared Threading=multi Install




vs2013 under boost1.57 compilation

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.