windows下!boost库的编译选项

来源:互联网 发布:软件的生存周期 编辑:程序博客网 时间:2024/05/16 00:57

从官网下载boost库,http://www.boost.org/

我下载的是boost_1_57_0.zip

解压缩,双击bootstrap.bat,会生成b2.exe。

用Visual Studio Tools下的VS20xx 开发人员命令提示输入下面你需要的命令。

编译快慢视电脑的运行速度决定,差不多半小时左右。



把我自己用的boost库的编译选项发上来,供大家参考:

debug
b2 install --prefix=E:\Boost-msvc-12.0-complete-d --build-type=complete --build-dir=E:\Boost-msvc-12.0-complete-d\build-dir --stagedir=E:\Boost-msvc-12.0-complete-d\stagedir  toolset=msvc-12.0 variant=debug threading=multi runtime-link=shared  -a -q




release
b2 install --prefix=E:\Boost-msvc-12.0-complete-r --build-type=complete --build-dir=E:\Boost-msvc-12.0-complete-r\build-dir --stagedir=E:\Boost-msvc-12.0-complete-r\stagedir  toolset=msvc-12.0 variant=release threading=multi runtime-link=shared  -a -q


msvc-12.0vs2013msvc-11.0
vs2012msvc-10.0
vs2010

对于其选项,可以输入b2 --help自己查看翻译。

0 0