首页 > 技术文章 > boost::VS2017下编译和配置boost库

osbreak 2019-06-21 11:05 原文

环境: win10  vs2017  v141

1、下载  boost_1_70_0.zip.

2、以管理员方式打开

3、 bootstrap.bat

4、编译64位库

b2.exe stage --toolset=msvc-14.1 address-model=64 --stagedir="D:\Appinstall\boost_1_70_0\VC14.1\x64" threading=multi --build-type=complete --build-dir="D:\Appinstall\boost_1_70_0\build"

5、编译32位库

b2.exe stage --toolset=msvc-14.1 address-model=32 --stagedir="D:\Appinstall\boost_1_70_0\VC14.1\x32" threading=multi --build-type=complete --build-dir="D:\Appinstall\boost_1_70_0\build"

 

推荐阅读