This is the mail archive of the firstname.lastname@example.org
mailing list for the Cygwin project. See the Cygwin
home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]
Re: egcs 1.1.1: odd warning message with template friend functions
- To: Bob Aglietti <email@example.com>
- Subject: Re: egcs 1.1.1: odd warning message with template friend functions
- From: Mumit Khan <firstname.lastname@example.org.EDU>
- Date: Mon, 15 Mar 1999 11:14:58 -0600
- cc: email@example.com, firstname.lastname@example.org
- Delivered-To: email@example.com
- Delivered-To: mailing list firstname.lastname@example.org
- In-reply-to: Your message of "Mon, 15 Mar 1999 08:48:33 PST." <199903151648.AA251596512@hplagl.hpl.hp.com>
- Mailing-List: contact email@example.com; run by ezmlm
- Sender: firstname.lastname@example.org
Bob Aglietti <email@example.com> writes:
> I don't know why this message shows up in the current version, but I installe
> the 2.8.1 compiler on one of my unix systems and it's nice enough to mention
> that I might want to use the option: '-fguiding-decls'. Sure enough, no
> warnings. This also works with the egcs-2.91.57 compiler I'm using on my pc.
> I still don't understand what changed but this'll at least get around it.
I strongly recommend against using the -fguiding-decl switch. Fixing your
code (and ifdef'ing for non-conformant compilers) is the right way to go.
This particular option can cause you much grief when you're using iostreams
and other C++ libraries that were not built with this option as well.
Also, comparison to gcc-2.8.1 is usually not a good idea. The C++ front in
FSF GCC is so old and buggy that it's almost unusable for any real code
that makes heavy use of templates, exceptions, etc.
I'm not going to bore the non-C++ users with an explanation of guiding
declarations; the ANSI/ISO standard describes it well, and so do lots of
postings to C++ specific forums (http://www.dejanews.com/ is your friend).
Want to unsubscribe from this list?
Send a message to firstname.lastname@example.org