- 下载boost开源库:https://www.boost.org/users/download/
- 运行VS安装的开发人员命令提示符(vs cmd窗口)
- 在boost开源库的根目录下运行:bootstrap.bat,生成两个编译工具:b2.exe、bjam.exe
- 可参考帮助文档index.html根据需求进行编译
- 简单编译可直接运行:.\b2
- 也可配置运行:bjam install --toolset=msvc-12.0 --prefix="./my_build/msvc120" --build-type=complete --build-dir="./my_build/tmp/complete/msvc120",其中msvc-12.0表示开发环境工具版本,可自己适配。编译类型complete为完整编译。