您的位置:首页 > 产品设计 > UI/UE

vs2012 build boost

2016-01-12 16:52 387 查看
refs:
http://www.boost.org/doc/libs/1_60_0/more/getting_started/windows.html#get-boost http://www.linuxidc.com/Linux/2014-06/103499.htm http://d.hatena.ne.jp/mintsu123/20130629/1372516484
1)下载boost 1.6

2)通过vs tool(开始菜单)的x86 本地终端,cd 到boost下,运行bootstrap,

3)运行结果会提示你运行. \b2,这次是真的的编译lib库了,耗时较长。

3)编译结果给出如下提示,配置自己的vs工程,添加头引用和lib引用。

The Boost C++ Libraries were successfully built!

The following directory should be added to compiler include paths:

D:\Program Files\boost\boost_1_60_0

The following directory should be added to linker library paths:

D:\Program Files\boost\boost_1_60_0\stage\lib


4)

分开编译x86和64位库的方法

> B2 --build-dir = build \ x86 --stagedir = stage / x86 address-model = 32 -j 4
> B2 --build-dir = build \ x64 --stagedir = stage / x64 address-model = 64 -j 4
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: