boost_1.61.0编译安装

1、下载源码boost_1_61_0.zip

2、进入目录 C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\Shortcuts\VS2013 x86 Native Tools Command Prompt

3、进入目录 boost_1_61_0执行bootstrap

4、

If you wish to build from source with Visual C++, you can use a simple build procedure described in this section.

Open the command prompt and change your current directory to the Boost root directory. Then, type the following commands:

bootstrap
.\b2

The first command prepares the Boost.Build system for use.

The second command invokes Boost.Build to build the separately-compiled Boost libraries. Please consult the Boost.Build documentation for a list of allowed options.

使用下面的编译选项生成动态库:

boost_1_61_0>b2 --build-dir=boost-build --build-type=complete --stage
dir=boost-output variant=debug,release link=shared threading=multi address-model
=32 toolset=msvc-12.0 runtime-link=shared --with-thread

使用下面的编译选项生成静态库:
boost_1_61_0>b2 --build-dir=boost-build --build-type=complete --stage
dir=boost-output variant=debug,release link=static threading=multi address-model
=32 toolset=msvc-12.0 runtime-link=shared --with-thread

boost:
..\..\boost_1_61_0\boost-output\lib

b2 --show-libraries,可查看所有必须编译才能使用的库
--with-thread
libboost_thread-vc120-mt-1_61.lib
libboost_chrono-vc120-mt-1_61.lib
libboost_system-vc120-mt-1_61.lib

--with-date_time
libboost_date_time-vc120-mt-1_61.lib

--with-regex

转载于:https://www.cnblogs.com/zxpo/p/5725298.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值