Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2007-05-02 17:38:03


Andrey Semashev wrote:
> 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.

Cygwin works, you just need to compile for 486 or better.


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