boost_1.61.0编译安装

1、下载源码boost_1_61_0.zip

2、进入目录 C:Program Files (x86)Microsoft Visual Studio 12.0Common7ToolsShortcutsVS2013 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
.2

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:
....oost_1_61_0oost-outputlib

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