如何使用 GCC 强制构建 32 位 Boost? [英] How do I force a 32-bit build of Boost with GCC?
本文介绍了如何使用 GCC 强制构建 32 位 Boost?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用 GCC 强制构建 32 位 Boost?目前正在尝试将此行放在我的 user-config.jam
中,但它不起作用:
How do I force a 32-bit build of Boost with GCC? Currently attempting by putting this line in my user-config.jam
, but it does not work:
using gcc : 4.1.2 : g++ : compileflags="-m32" ;
推荐答案
如果您使用的是 C++ Boost 1.40,请使用:
If you are using C++ Boost 1.40, use:
bjam address-model=32
如果您使用的是早期版本,请考虑升级.如果不能,请使用
If you are using eariler version, consider upgrading. If you cannot, use
bjam address-model=32 architecture=x86
我还建议您查看 精细手册
这篇关于如何使用 GCC 强制构建 32 位 Boost?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文