Boost logo

Boost :

From: Andrey Semashev (andysem_at_[hidden])
Date: 2007-05-02 17:28:53


Hello Peter,

Friday, April 27, 2007, 11:29:57 PM, you wrote:

>>> This could be that the test machine is misconfigured, or that
>>> atomic_count.hpp needs a patch for this version of GCC.
>>
>> GCC 4.3 has moved this header into ext/atomicity.h and all of its
>> functions into namespace __gnu_cxx.

> For GCC 4.1 and above, we need to switch atomic_count and sp_counted_base to

> http://gcc.gnu.org/onlinedocs/gcc-4.1.1/gcc/Atomic-Builtins.html

> If someone can submit a patch for that I'll incorporate it, otherwise it
> will happen whenever I find the time to implement and test it myself.

Please note that if the target platform is not supported with these
extensions, the compiler will generate external function call which
will most likely result in link errors. For example, I tried to make
use of them under Cygwin (I was hoping they would do just like
interlocked functions) and got this problem.

-- 
Best regards,
 Andrey                            mailto:andysem_at_[hidden]

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk