Subject: Re: [boost] How to build 32 bits boost library on a 64 bits platform
From: Qihong Wang (qihongwang_at_[hidden])
Date: 2009-03-23 16:48:04
It works for me. If I just specify address-mode, the library is still 64
bits. I have to specify both. Before I tried this, I also tried to specify
gcc version and compileFlag and linkFlag as -m32 according to document. That
doesn't work either.
Thanks Frédéric and Alexander.
On Mon, Mar 23, 2009 at 4:16 AM, Alexander Arhipenko <arhipjan_at_[hidden]>wrote:
> On Sat, Mar 21, 2009 at 10:58 PM, Qihong Wang <qihongwang_at_[hidden]>
> > Hello,
> > My platform is a 64 bits Linux with gcc. My program needs to link a 32
> > library without source code and other
> > libraries with source code. I wrote a script to build those libraries
> > source code by
> > ./configure --prefix=$install_prefix CFLAGS="-g -O2 -Wall -m32"
> > CPPFLAGS=-m32 CXXFLAGS="-g -O2 -m32"
> > make install
> > Then start to build my executable through Makefile with -m32 flag either.
> > The configure and make install work for other libraries but not work for
> > boost. The boost libraries were compiled and
> > installed but still 64 bits. Linker refused to link it. Is there any
> > approach to build 32 bits boost on 64 bits Linux?
> > Thanks,
> > Qihong
> Passing 'address-model=32 architecture=x86' arguments to bjam works fine
> for me.
> Unsubscribe & other changes:
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk