本文给初次接触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) 编译方法:
写得比较清楚博文:http://www.cnblogs.com/zhcncn/p/3950477.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 http://blog.csdn.net/kangroger/article/details/39393769
如果要用到第三方库,如python,参考博文:http://blog.csdn.net/qiuxin315/article/details/40263235
(3)应用
包含头文件的Include路径:C:\boost\bin\vc10\include\boost-1_56\boost 根据自己的路径修改
包含库文件的链接路径:C:\boost\bin\vc10\lib