一、windows下
1.打开vs本机工具命令提示,并且进入boost源码目录。
如果要编译32位请打开32位工具,如果编译64位请打开64位工具。
2.执行bootstrap.bat脚本。
生成bjam编译工具。
3.执行下面命令:
bjam install --toolset=msvc-11.0 --without-graph --without-graph_parallel --without-math --without-mpi --without-python --without-serialization --without-wave --stagedir="F:\boost\x86\vc11" link=static runtime-link=shared runtime-link=static threading=multi debug release
4.安装,这个步骤可以不用,因为代码已经编译好了,在源码目录中了。
bjam install
上面命令会将编译好的lib文件和include放到stagedir目录下。
二、linux下
1.安装开发工具:
yum groupinstall "Development Tools"
</