Compiling and setting of boost ipv42_0 in Windows

Source: Internet
Author: User

1. FirstHttp://sourceforge.net/projects/boost/files/boost/1.42.0/Download the latest boost library boost_000042. Note that the boost library should be compiled on a hard disk with at least 6 GB space.

 

2. After the download, use the command line to enter the root directory of the boost Library (my example is: e:/boost_1_42_0 ).

 

3. In the command line window, run the batch file Bootstrap. bat in the root directory of the boost library to generate the bjam tool. (Double-click Bootstrap. bat in the extract directory)

4. Run the command: bjam-sboost_root =.-stools = msvc "-- Build-type = complete"

(The preceding command must be run in the directory containing bjam In the boost decompression file, for example:

After entering CDM:

1. D: (I decompress the package to drive D)

2. CD softwares/boost_000042_0/boost_000042_0/

3. bjam-sboost_root =.-stools = msvc "-- Build-type = complete"

)
Note that this is a fully compiled boost library, including single-threaded, multi-threaded, Unicode, and non-Unicode versions. I think the future requirements are uncertain. I just compiled them all at once. The preceding command line parameters are described as follows:
-Sboost_root =. indicates that the root directory of the boost library is in the current directory. -Stools = msvc indicates that the VC compiler is used for compilation. If your computer has multiple versions of VC installed on it, the compiler of the highest version will be used for compilation (for example, with vc6.0 and VC 8.0 installed, so it must be compiled by the VC 8.0 compiler ). -- Build-type = complete indicates that it is fully compiled, including various versions.

 

After the compilation is complete, it is the Setting Problem in VC or.

My path is: D:/softwares/Boost 1_42_0/Boost 1_42_0 /*

The library file compiled just now is in D:/softwares/Boost 1_42_0/Boost 1_42_0/stage/lib.

Perform the following settings:

1. Include directory contains the root directory D:/softwares/Boost limit 42_0/Boost limit 42_0 /.

2. The Library include contains D:/softwares/Boost 1_42_0/Boost 1_42_0/stage/lib.

3. Source include contains D:/softwares/Boost 1_42_0/Boost 1_42_0/boost.

 

OK, boost can be used ....

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.