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 ....