VS2017 编译64位boost静态库

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

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值