您的位置:首页 > 其它

BOOST 1.56 简明配置方法,资源整理

2015-01-02 12:16 162 查看

本文给初次接触boost的同学提供一点方便:

BOOST1.56资料整理:http://pan.baidu.com/s/1hqtdJjI

其中 :

boost-book: 几个教程

boost1-56bin.rar:win7-64b环境下,vs2010的编译好的库

boost_1_56_0.zip: 1.56源代码

Boost快速使用方法:

如果你是vs2010,

(1)下载 boost1-56bin.rar,解压到磁盘

(2)在你的工程中应用之,即设置好include 和 lib路径

如果你用的vs2013或者其他环境的话,需自行编译,参照方法如下:

(1)源代码:需要自己编译后使用

http://softlayer-dal.dl.sourceforge.net/project/boost/boost/1.56.0/boost_1_56_0.zip

(2) 编译方法:

写得比较清楚博文:/article/5109344.html

如果常规使用,建议使用如下命令行(VS2010+静态库),编译:bjam install--toolset=msvc-10.0 --without-python --prefix="C:\boost\bin\vc10" link=static runtime-link=static runtime-link=static threading=multi debug release

如果缺少哪个库,再重新单独编译这个库,例如单独编译thread库 :

bjam install--toolset=msvc-10.0 --with-thread --prefix="C:\boost\bin\vc10" link=static runtime-link=static runtime-link=static threading=multi debug release

本人编译好的库见上述网盘:http://pan.baidu.com/s/1hqtdJjI

参考博文1: VS2010编译Boost 1.56 /article/1802377.html

如果要用到第三方库,如python,参考博文:/article/9368906.html

(3)应用

包含头文件的Include路径:C:\boost\bin\vc10\include\boost-1_56\boost 根据自己的路径修改

包含库文件的链接路径:C:\boost\bin\vc10\lib


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐