Gehua Yang wrote:
Hi Folks,
I am using Boost.Serialization and Boost.Thread in my project. Because current Boost release had problems with GCC 4.3, I had to build my own Boost libraries from a svn checkout. Fortunately, with the help from "Getting Started Guide", I accomplished the mission with ease. The commands I used are: bjam --build-dir=/tmp/build-boost --toolset=gcc --build-type="release <threading>multi <link>static <runtime-link>static" stage bjam --build-dir=/tmp/build-boost --toolset=gcc --build-type="release <threading>multi <link>static <runtime-link>static" --prefix=/software/boost-20080710 install
The above produced 64-bit libraries. My question is, how I can build 32-bit Boost libraries on the same machine? Does it take command line variables, such as CXXFLAGS=-m32?
There are two approaches: 1. bjam <.....> address-model=32 This might require SVN HEAD. 2. bjam <.....> cxxflags=-m32 Note this will affect C++ compilation only, add "cflags=-m32" to affect C. - Volodya