您的位置:首页 > 其它

Win7 64位 VS2013环境编译boost1_58_0

2015-11-29 16:52 441 查看
备忘,发现好多不常用的东西不记笔记再想用要重新花时间找,所以试着开始记笔记,写入博客吧。

首先去官网下最新的版本

http://www.boost.org/

写本文时boost最新版本为1_58_0,上次用的时候是1_57_0,看了下我的boost Hello World日期是2014.11.18,才半年就忘光光了...

我下的是windows的7z压缩版本,62.2MB,解压出来运行bootstrap.bat,生成b2.exe和bjam.exe文件

之后在相同目录下写个bat,我使用vs2013,所以在网上找了找大概写成这样,分x86和x64两个版本,只编译些常用的库。

上次作死试着所有库都编译了,有些坑爹库简直巨大,编译后整个lib库差不多有20G,现在这些库编出来差不多255MB,对于我这种不怎么用boost,只写写Hello World的足够用了。

x86版本

bjam stage --toolset=msvc-12.0 --without-graph --without-graph_parallel --without-math --without-mpi --without-serialization --without-wave --without-atomic --without-chrono --without-random --without-regex --without-test --without-thread --without-program_options --without-serialization --without-signals --stagedir=".\lib\vc12_x86" link=static runtime-link=shared threading=multi debug release

x64版本

bjam stage --toolset=msvc-12.0 --without-graph --without-graph_parallel --without-math --without-mpi --without-serialization --without-wave --without-atomic --without-chrono --without-random --without-regex --without-test --without-thread --without-program_options --without-serialization --without-signals --stagedir=".\lib\vc12_x64" link=static runtime-link=shared threading=multi debug release address-model=64
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: