编译 boost

简介: 不想深究,只是可以编译出想要的lib文件   1.打开visual studio 2012 命令提示 2.进入 boost目录 3.运行booststrp.bat得到b2.exe、bjam.exe、project-config.

不想深究,只是可以编译出想要的lib文件

 

1.打开visual studio 2012 命令提示

2.进入 boost目录

3.运行booststrp.bat得到b2.exe、bjam.exe、project-config.jam文件

4.运行命令

多线程调试 DLL (/MDd)

bjam stage --with-date_time --toolset=msvc-11.0 --build-type=complete link=static runtime-link=shared threading=multi debug

以上命令编译出 libboost_date_time-vc110-mt-gd-1_62.lib

注:runtime-link=shared表示是c++运行库是DLL即MDd或MD

f:\setup\boost_1_62_0>bjam stage --with-locale --toolset=msvc-12.0 --build-type=complete link=static runtime-link=static threading=multi release

以上命令编译出的文件为libboost_locale-vc120-mt-s-1_62.lib 对应vs 编译的 MT

 

要编译64位的要加上 address-model=64 

相关文章
|
20天前
|
C语言 C++
boost库asio编译及配置
boost库asio编译及配置
123 0
|
20天前
|
C++ Python
【boost】boost1.71安装以及VS2019调用boost.Python
【boost】boost1.71安装以及VS2019调用boost.Python
|
10月前
Boost(MSVC编译)+使用信号槽
天天看QT的信号槽,突然发现boost中也有信号槽,所以想试试boost的信号槽,尝试一下。需要先对boost进行编译,之后我会使用信号槽作为演示代码。
96 0
VS2015编译Boost1.64
一、下载并解压:boost1.64.0:http://www.boost.org/users/history/version_1_64_0.html 二、以管理员权限运行VS2015命令行工具   三、cd到boost解压目录   四、运行bootstrap.
1327 0

热门文章

最新文章