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
>> # ifndef __APPLE_CC__
>> // GCC strange "ignore std" mode works better if you pretend
>> // 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
> No idea, but it looks wrong for gcc3 series compilers in any case...
> # 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.