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:18:31


Ákos Maróy wrote:
> interesting. you're right, a sample code with a simple shared_ptr
> reference also fails to link with the same error message, where the code
> is the following:
...
> but: this only happens with boost 1.45.0. with boost 1.44.0, it all
> seems to work fine.
>
> interesting...

Indeed. Can you examine boost/smart_ptr/detail/sp_counted_base.hpp and see
what's different between 1.44 and 1.45? It should pick the following:

#elif defined( __GNUC__ ) && ( defined( __i386__ ) || defined(
__x86_64__ ) )
# include <boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp>

on either x86 and x64, any idea why it doesn't with -m32? Is __i386__ not
defined?


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