From owner-freebsd-current Wed Dec 29 18:54:33 1999 Delivered-To: freebsd-current@freebsd.org Received: from relay.nuxi.com (nuxi.cs.ucdavis.edu [169.237.7.38]) by hub.freebsd.org (Postfix) with ESMTP id 025E31518D for ; Wed, 29 Dec 1999 18:54:31 -0800 (PST) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (root@d60-025.leach.ucdavis.edu [169.237.60.25]) by relay.nuxi.com (8.9.3/8.9.3) with ESMTP id SAA14264; Wed, 29 Dec 1999 18:54:30 -0800 (PST) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.9.3/8.9.1) id SAA16137; Wed, 29 Dec 1999 18:54:29 -0800 (PST) (envelope-from obrien) Date: Wed, 29 Dec 1999 18:54:29 -0800 From: "David O'Brien" To: Andy Farkas Cc: current@FreeBSD.ORG Subject: Re: gcc compile error Message-ID: <19991229185429.B16090@dragon.nuxi.com> Reply-To: obrien@FreeBSD.ORG References: <19991228171415.B7516@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from andyf@speednet.com.au on Thu, Dec 30, 1999 at 02:40:46AM +1100 X-Operating-System: FreeBSD 4.0-CURRENT Organization: The NUXI BSD group X-PGP-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Keyid: 34F9F9D5 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Dec 30, 1999 at 02:40:46AM +1100, Andy Farkas wrote: > In file included from include/PortMgr.h:29, > from Connection.cc:33: > include/LevelStat.h:55: invalid type `const char[1]' for default argument > to `const String &' ..snip.. > The "offending" code looks like this: > ostream &print(ostream &os, const String &pfx = "") const; What is the prototype for this function? Hint take a look. You have bad (ie, now invalid by stricter compilers) C++ code. > When I did a 'touch Connection.o ; make' it compiled another source file > that included PortMgr.h / LevelStat.h just fine, but bombed out elsewhere! I can't even fathom what you expected to accomplish by this. Are you a programmer? -- -- David (obrien@NUXI.com) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message