window下boost库

1、下载boost开发库源码。

2、使用vs2008的命令行工具,进入到源码目录xxx/boost_1_58_0,命令行中运行bootstrap.bat,生成文件b2.exe,在命令行中执行b2.exe。

3、等待boost库编译连接完成,提示如下:

The Boost C++ Libraries were successfully built!
The following directory should be added to compiler include paths:
    xxx/boost_1_58_0
The following directory should be added to linker library paths:
    xxx\boost_1_58_0\stage\lib

4、注意编译出的所有静态库均为vs2008的版本,使用其它IDE无法编译。

5、使用vs2008创建工程时,include添加boost_1_58_0目录,lib添加boost_1_58_0\stage\lib目录。

posted @ 2015-08-17 11:23  BloodAndBone  Views(228)  Comments(0Edit  收藏  举报