最近做项目,要用到框架,想到boost,现将使用过程记录下来。
一 、下载boost1.63
去官网http://www.boost.org/下载一份代码,解压到自己的目录
二 、执行脚本,生成bjam.exe
1、去开始菜单中找到 vs2015的编译命令行 “VS2015 开发人员命令提示”
2、切换到你的boost目录下(如我的是F:\dev\vc\boost_1_63_0\tools\build)执行bootstrap.bat,生成程序
三、编译
将bjam.exe拷到boost1.63目录下(F:\dev\vc\boost_1_63_0),执行下面的命令行
bjam stage --without-python --toolset=msvc-14.0 --build-type=complete --stagedir=".\bin\vc14" link=static runtime-link=shared threading=multi debug
release
四、install
执行bjam install 将include和lib拷贝到c:\boost目录下,其它设置vs的include和lib目录,就不多讲了