1:打开VS自带的本地命令行工具,cd到boost库根目录 ,然后输入:
bootstrap.bat
2) 打开与bootstrap.bat同级的目录中 project-config.jam文件 把内容替换成下面这样的形式
import option ;
using msvc : 14.0 : "c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.24728\bin\HostX64\x64\cl.exe";
option.set keep-going : false ;
(3)然后运行: b2 toolset=msvc-14.0 address-model=64
大功告成!
注意:有时候由于文件格式不对,导致project-config.jam 文件内容无法被识别,所以以上内容如果还出现错误,请多次尝试,再下结论
|
Based on KindDragons answer I compiled Boost 1.63. For 64bit. Starting with Developer Command Prompt for VS 2017 RC
1) Run: bootstrap.bat
2) open project-config.jam . Here is mine:
import option ;
using msvc : 14.0 : "c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.24728\bin\HostX64\x64\cl.exe";
option.set keep-going : false ;
3) Run b2 toolset=msvc-14.0 address-model=64
|