delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
Message-Id: | <199903151714.LAA02793@modi.xraylith.wisc.edu> |
X-Authentication-Warning: | modi.xraylith.wisc.edu: localhost.xraylith.wisc.edu [127.0.0.1] didn't use HELO protocol |
To: | Bob Aglietti <grut AT hplagl DOT hpl DOT hp DOT com> |
cc: | jonpryor AT vt DOT edu, cygwin AT sourceware DOT cygnus DOT com |
Subject: | Re: egcs 1.1.1: odd warning message with template friend functions |
In-reply-to: | Your message of "Mon, 15 Mar 1999 08:48:33 PST." |
<199903151648 DOT AA251596512 AT hplagl DOT hpl DOT hp DOT com> | |
Date: | Mon, 15 Mar 1999 11:14:58 -0600 |
From: | Mumit Khan <khan AT xraylith DOT wisc DOT EDU> |
Bob Aglietti <grut AT hplagl DOT hpl DOT hp DOT 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 AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |