Boost logo

Boost Users :

Subject: [Boost-users] Trouble building 32bit version
From: Noah Roberts (roberts.noah_at_[hidden])
Date: 2010-08-05 20:51:56

I have a 64bit Linux system and I need to build boost for 32bit in order
to link to this library I have to use. Trouble is that I keep getting
this error when I try to link to any boost library:

nroberts_at_Adad:~$ g++ test.cpp -m32 -L/home/nroberts/boost-x86/lib
/home/nroberts/boost-x86/lib/ undefined
reference to `__sync_fetch_and_add_4'
collect2: ld returned 1 exit status

test.cpp just contains an empty main().

I've tried google and arrived at various places:,-Linux%29-td22087063.html

Among others. I'm trying to build version 1.38.

Here's my last attempt at supplying bjam with the correct parameters:

bjam architecture=x86 address-model=32 toolset=gcc instruction-set=i686

It's funny though, even at the link in the reply held at the
documentation doesn't seem to have anything on any of these parameters.
  They don't appear in the bjam --help output either. So I seem to be
kind of screwed in figuring this out myself. I'm just trying to guess
until I get it but I'm out of ideas. What do I need to do?


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at