VS2013的boost.python编译
2018-02-13 20:54
579 查看
1.运行bootstrap.bat,会生成b2.exe和bjam.exe。
2.运行如下命令
编译release版本(x64)
编译debug版本(x64)
注:
–prefix设置boost安装目录;
stage表示只生成库文件(dll与lib文件);
toolset指定编译器
variant决定编译什么版本;
link决定使用静态库还是动态库,shared是动态库,static是静态库;
address-model决定地址长度,即32还是64位程序;
threading决定使用单线程(single)还是多线程(multi)库;
runtime-link决定是静态(static)还是动态(shared)链接C/C++标准库;
install会生成包含头文件的include目录。
转自:
http://blog.csdn.net/lpp0900320123/article/details/52014741
http://blog.csdn.net/xingchenbingbuyu/article/details/70256648
2.运行如下命令
b2 -a --with-python address-model=64 toolset=msvc runtime-link=static
编译release版本(x64)
bjam --with-python --prefix=c:\boost stage toolset=msvc-14.0 variant=release link=shared address-model=64 threading=multi runtime-link=shared install
编译debug版本(x64)
bjam --with-python --prefix=c:\boost stage toolset=msvc-14.0 variant=debug link=shared address-model=64 threading=multi runtime-link=shared install
注:
–prefix设置boost安装目录;
stage表示只生成库文件(dll与lib文件);
toolset指定编译器
variant决定编译什么版本;
link决定使用静态库还是动态库,shared是动态库,static是静态库;
address-model决定地址长度,即32还是64位程序;
threading决定使用单线程(single)还是多线程(multi)库;
runtime-link决定是静态(static)还是动态(shared)链接C/C++标准库;
install会生成包含头文件的include目录。
转自:
http://blog.csdn.net/lpp0900320123/article/details/52014741
http://blog.csdn.net/xingchenbingbuyu/article/details/70256648
相关文章推荐
- boost_1.63.0编译VS2013
- VS2013编译boost 1.62:.\boost/type_traits/common_types.h(42) : fatal error C1001: 编译发生内部错误
- boost 1.57 vs2013 编译
- 基于VS2013 X64的boost.python环境搭建
- vs2013 + python3.52 + boost1.61, 编译C++库失败
- vs2013编译boost1.55.0 32/64位
- Vs2013编译Boost asio时出现的错误
- vs2010用 boost.python 编译c++类库 供python调用
- vs2013编译boost及相关的配置
- VS2013编译boost1.55库
- VS2013编译安装Boost1.55
- VS2013编译boost1.56.0
- bjam.exe stage --toolset=msvc-12.0 vs2013 编译boost
- python在vs2013下的编译
- bjam.exe stage --toolset=msvc-12.0 vs2013 编译boost
- boost——windows下VS2013update5编译boost库
- VS2013编译boost
- vs2013 boost1.6编译
- VS2013编译boost1.55.0 serialization库错误解决办法
- Windows+VS2013下Boost1.59编译运行