Boost logo

Boost :

From: Matthias Troyer (troyer_at_[hidden])
Date: 2003-10-28 15:37:49


On Oct 28, 2003, at 4:35 PM, John Maddock wrote:

>> Can anybody explain the reason for the following lines in
>> boost/config/platform/macos.hpp?
>>
>>
>> # ifndef __APPLE_CC__
>>
>> // GCC strange "ignore std" mode works better if you pretend
>> everything
>> // is in the std namespace, for the most part.
>>
>> # define BOOST_NO_STDC_NAMESPACE
>> # endif
>>
>>
>> With this BOOST_NO_STDC_NAMESPACE some parts of ublas fail to compile
>> under MacOS if a non-Apple GNU compiler such as gcc-3.3.2 is used. Why
>> is BOOST_NO_STDC_NAMESPACE defined on MacOS for non-Apple gcc
>> compilers?
>
> No idea, but it looks wrong for gcc3 series compilers in any case...
>
> would:
>
> # if (__GNUC__ < 3) && !defined( __APPLE_CC__)
>
> be any better?

Yes, that would be much better, all my codes will then compile then
but some will give a linking error (see my recent post regarding
ublas). As far as I can see this linking error might be a gcc-3.3.2 bug
that needs investigating.

In any case the proposed change is definitely needed and should not
lead to any incompatibility as far as I can see.

Matthias


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