This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: libstdc++-v3 + libstdc++ + libio + CVS gcc
- To: bkoz at cygnus dot com
- Subject: Re: libstdc++-v3 + libstdc++ + libio + CVS gcc
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Thu, 6 Apr 2000 01:35:24 +0200
- CC: libstdc++ at sourceware dot cygnus dot com
- References: <200004050837.BAA06252@haight.constant.com>
> Here's a patch that implements this, using --enable-libstdcxx-v3 as
> a starting point.
Very good. Actually merging the CVS repositories is another challenge,
but I guess there are plenty CVS experts around.
> Perhaps --enable flag should flip a switch and define this?
> Could do something ugly and define
> int flag_honor_std = _GPP_ENABLE_NAMESPACES;
> Where this macro is determined at configure time, as
> config.h is included in gcc/cp/decl2.c
Actually, this is what I had in mind. It is pretty much in line with
other default settings, such as
#ifndef DOLLARS_IN_IDENTIFIERS
#define DOLLARS_IN_IDENTIFIERS 1
#endif
int dollars_in_ident = DOLLARS_IN_IDENTIFIERS;
With that change, people don't have to pass -fhonor-std every time
they invoke a libstdc++-v3 based compiler. The default configuration
should just work, allowing
g++ hello.cc
./a.out
IOW, options that you must specify to get anything to work at all are
a bad thing, they really should be options.
Regards,
Martin