This is the mail archive of the cygwin@sourceware.cygnus.com
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 <grut@hplagl.hpl.hp.com>
- Subject: Re: egcs 1.1.1: odd warning message with template friend functions
- From: Mumit Khan <khan@xraylith.wisc.EDU>
- Date: Mon, 15 Mar 1999 11:14:58 -0600
- cc: jonpryor@vt.edu, cygwin@sourceware.cygnus.com
- Delivered-To: listarch-cygwin@sourceware.cygnus.com
- Delivered-To: mailing list cygwin@sourceware.cygnus.com
- In-reply-to: Your message of "Mon, 15 Mar 1999 08:48:33 PST." <199903151648.AA251596512@hplagl.hpl.hp.com>
- Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
- Sender: cygwin-owner@sourceware.cygnus.com
Bob Aglietti <grut@hplagl.hpl.hp.com> writes:
>
> I don't know why this message shows up in the current version, but I installe
> d
> 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).
Regards,
Mumit
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com