vs2019编译boost

下载地址: 

https://archives.boost.io/release/1.86.0/source/boost_1_86_0.7z

1.管理员权限运行x86_x64 Cross Tools Command Prompt for VS 2019

2.bootstrap.bat

3.有两种方法,选择一种

3.a.

b2.exe install --toolset=msvc-14.2 architecture=x86 address-model=64 --stagedir="D:\boost_1_86_0" link=static runtime-link=shared runtime-link=static --build-type=complete --with-system --with-thread --with-date_time --with-filesystem --with-serialization threading=multi debug release

自动在D:\boost_1_86_0生成lib文件,需要手工拷贝 boost_1_86_0\boost 到D:\boost_1_86_0\include

3.b

b2 install --toolset=msvc-14.2 --build-type=complete --prefix="D:\boost_1_86_0" link=shared runtime-link=shared runtime-link=static threading=multi debug release

不需要手工拷贝include文件,会自动生成。

  • 3
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值