How do I force a 32-bit build of Boost with GCC?

32-bit, boost, gcc

Solution

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

I also recommend that you take a look at the fine manual

Problem

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" ; ```

Original source