1 下载boost
2 解压boost
3 编译bjam.exe:进入VS2010的Command Prompt,切换目录到boost解压目录下的子目录tools\build\v2\中,运行其中的bootstrap.bat,在当前目录中会生成bjam.exe,
将bjam.exe拷贝到解压目录中;
4 修改tools\build\v2\user-config.jam,在# MSVC configuration栏目的最后面补充一句using msvc : 10.0;如下:
# -------------------
# MSVC configuration.
# -------------------
# Configure msvc (default version, searched for in standard locations and PATH).
# using msvc ;
# Configure specific msvc version (searched for in standard locations and PATH).
# using msvc : 8.0 ;
using msvc : 10.0;
5 将VS2010的Command Prompt的目录转至boost加压目录下,然后输入:bjam --toolset=msvc-10.0 --build-type=complete stage 后开始编译,
编译完成,生成的库文件位于解压目录的子目录/stage/lib下
6 将加压目录的子目录 /boost 和stage/lib分别加到vs2010中即可
boost加压目录是如下目录:
boost_1_46_1\ .................The “boost root directory”
index.htm .........A copy of www.boost.org starts here
boost\ .........................All Boost Header files
lib\ .....................precompiled library binaries
libs\ ............Tests, .cpps, docs, etc., by library
index.html ........Library documentation starts here
algorithm\
any\
array\
…more libraries…
status\ .........................Boost-wide test suite
tools\ ...........Utilities, e.g. bjam, quickbook, bcp
more\ ..........................Policy documents, etc.
doc\ ...............A subset of all Boost library docs
本文详细介绍如何下载、解压并编译Boost库。包括使用VS2010的CommandPrompt生成bjam.exe,配置Visual Studio 2010,以及如何将Boost库集成到项目中。
1304

被折叠的 条评论
为什么被折叠?



