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
首先去官网下最新的版本
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
相关文章推荐
- 搬砖(规律题)
- No Android facet found in the module 的解决办法
- 用jquery循环map
- 马云:员工的离职原因--转载
- JAXP Dom 案例 对xml文件进行增加 查找 删除
- Fleet-运行一个高可用的服务
- UITableViewCell,UITableView默认选中一个单元格
- 位图法排序
- 数据结构 使用递归任意进制转换(c语言实现)
- HDU 5587 数学
- 2015年11-12
- C语言基础篇(二)
- POJ 1125 Stockbroker Grapevine 最短路folyd算法
- How to customize the console applicaton
- spring-OpenSessionInVies延长session的生命周期
- Linux内核list_head学习(二)
- php判断变量类型常用方法
- oj 1018 放苹果
- 安装eclipse for php
- [LeetCode] Sort Colors