boost 编译 32 bit & 64 bit

来源:互联网 发布:小学教师 知乎 编辑:程序博客网 时间:2024/05/22 15:14

原文地址: http://blog.sina.com.cn/s/blog_4b055d6b01016nlp.html


编译32位:

1.修改 bootstrap.sh
指定如下参数
TOOLSET="g++"
PREFIX=/home/koower/boost_1_49
LIBDIR=/home/koower/boost_1_49/lib
2.执行 ./bootstrap.sh
3.编译和安装
./bjam cflags=-m32 cxxflags=-m32 address-model=32 threading=multi architecture=x86 instruction-set=i686 stage install 
 
64位与32位方法相同,不过没有执行过
原创粉丝点击