VS2008编译boost1.53

1. 准备工作:下载boost_1_53_0.zip(bzip2-1.0.6.tar.gz/icu4c-4_4_2-Win32-msvc9.zip/Python-2.5.2.tar.bz2/zlib-1.2.3-src.zip).

备注:括号内是扩展功能所用,如果不需要可不用下载,我这里没有用。

2. 编译boost

(1) 解压boost_1_53_0.zip,解压到E:\code\boost\boost_1_53_0.

(2) 通过VS2008的Visual Stdio 2008 命令提示(即Visual Stdio 2008Command Prompt),cd E:\code\boost\boost_1_53_0.

(3) 执行bootstrap.bat, 执行完毕会生成bjam.exe.

(4) 在E:\code\boost\boost_1_53_0目录下创建文件夹output.

(5) 输入命令: bjam --without-python --toolset=msvc-9.0 --prefix=E:\code\boost\boost_1_53_0\output  link=static  threading=multi  variant=debug  runtime-link=static  stage install

 (6) 编译成功.