vs2010下编译Boost 1.46

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


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值