|
Boost : |
From: Andrey Semashev (andysem_at_[hidden])
Date: 2007-05-03 01:00:01
Hello Peter,
Thursday, May 3, 2007, 1:38:03 AM, you wrote:
> 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.
Hm, I'll have to try (I thought there is no difference). But still the
problem stays. If some platform is not supported by compiler in this
way, users will get link errors.
-- 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