Boost logo

Boost Users :

Subject: Re: [Boost-users] regex __sync_fetch_and_add_4 issue when compiling to 32 bit Linux
From: Peter Dimov (pdimov_at_[hidden])
Date: 2011-01-20 12:41:48


Ákos Maróy wrote:

> #if defined __i386___

You have three trailing underscores instead of two here. :-)

Could you look at the list of the predefined macros and see what it
contains? From memory, you need to do something like

    touch empty.cpp
    g++ -m32 -march=i386 -dM -E empty.cpp

I've never seen g++ not define __i386__ with -march=i386. Very odd.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net