Window下编译boost1.68

下载boost

前往boost官网下载boost1.68

编译

解压释放到D:\boost1.68.0,使用VS工具运行bootstrap.bat,分别运行下面两个命令,其中address-model表示编译的是32位还是64位库,–stagedir=表示输出目录,link表示编译的是静态库还是动态库,runtime-link表示使用的运行时库是静态链接还是动态链接,threading表示使用的运行时库是多线程版本还是单线程版本。

bjam stage --toolset=msvc-14.1 --without-python address-model=32 --build-type=complete --stagedir="D:\boost1.68.0\bin\vc141_32" link=static runtime-link=static threading=multi debug release
bjam stage --toolset=msvc-14.1 --without-python address-model=64 --build-type=complete --stagedir="D:\boost1.68.0\bin\vc141_64" link=static runtime-link=static threading=multi debug release

也可以不带address-model参数,一次生成64位和32位库

bjam stage --toolset=msvc-14.1 --without-python --build-type=complete --stagedir="D:\boost1.68.0\bin" link=static runtime-link=static threading=multi debug release
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值