编译boost

本文详细介绍如何在Windows环境下使用Visual Studio 2013编译BoostPython库,包括配置环境、选择编译参数及生成不同类型的库文件等关键步骤。
boost

仅仅编译boost python
Windows boost 下编译 python 库 boost_python-vc120-mt-1_58.lib
1) 运行Visual Studio Tools中的VS2013 x64 Cross Tools Command Prompt终端工具
2) 从终端进入boost库所在目录,如D:\LIBS\boost_1_58_0
3) 运行bootstrap.bat生产64位的bjam.exe
link=static 则是静态库
bjam toolset=msvc-14.0 --with-python threading=multi link=shared  architecture=x86 address-model=64 debug release
全部
bjam --toolset=msvc14.0 --build-type=complete stage

编译部分库
bjam.exe stage --toolset=msvc-14.0 --without-graph --without-graph_parallel --without-math --without-mpi --without-serialization
--without-wave --without-test --without-program_options --without-serialization --without-signals --stagedir=".\bin\vc14_x64"
link=static runtime-link=shared threading=multi debug release address-model=64  architecture=x86  


文件后缀说明------------------
静态库debug文件:
libboost_python-vc140-mt-gd-1_58.lib
libboost_python3-vc140-mt-gd-1_58.lib
静态库release文件:
libboost_python-vc140-mt-1_58.lib
libboost_python3-vc140-mt-1_58.lib
动态库debug文件:
boost_python-vc140-mt-gd-1_58.dll
boost_python-vc140-mt-gd-1_58.lib
boost_python3-vc140-mt-gd-1_58.lib
boost_python3-vc140-mt-gd-1_58.lib
动态库release文件:
boost_python-vc140-mt-1_58.dll
boost_python-vc140-mt-1_58.lib        
boost_python3-vc140-mt-1_58.dll
boost_python3-vc140-mt-1_58.lib
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值