[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#164872: g++-3.2: Defines _GNU_SOURCE



On Tue, Oct 15, 2002 at 08:13:42PM +0100, Mark Brown wrote:
> On Tue, Oct 15, 2002 at 02:12:48PM -0400, Phil Edwards wrote:
> > On Tue, Oct 15, 2002 at 06:36:50PM +0100, Mark Brown wrote:
> 
> > > Grovelling around on the GCC website it appears that the issue is that
> > > libstdc++ needs _GNU_SOURCE although I can't quite be sure about that.
> 
> >     http://gcc.gnu.org/onlinedocs/libstdc++/faq/index.html#3_5
> 
> It's still a bug.  :)  

Nobody's ever argued differently.

> Since I doubt this bug report is going to help get this fixed upstream
> could you please take this bug report as a request for better
> documentation of the issue?

Sorry, I have zero free time.

It's simply this:  C++ requires stricter support from the underlying system
libraries than C does.  If the only way to get that support is to predefine
macros which preselect feature sets, then that's what we do.

This has been beat to death on the gcc mailing lists.

When somebody comes up with a better way, we will happily use it instead.
Nobody has had the time.


> I think the main thing is that it would be useful if this were
> documented in the GCC manual as well as the libstdc++ manual since
> that's where the bug really is - I actually ran into it on a source file
> which didn't reference libstdc++ at all.

Probably a good idea.  Please submit a patch:

    http://gcc.gnu.org/lists.html


Phil

-- 
I would therefore like to posit that computing's central challenge, viz. "How
not to make a mess of it," has /not/ been met.
                                                 - Edsger Dijkstra, 1930-2002



Reply to: