Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Dec 1999 18:54:29 -0800
From:      "David O'Brien" <obrien@FreeBSD.ORG>
To:        Andy Farkas <andyf@speednet.com.au>
Cc:        current@FreeBSD.ORG
Subject:   Re: gcc compile error
Message-ID:  <19991229185429.B16090@dragon.nuxi.com>
In-Reply-To: <Pine.BSF.4.10.9912300206010.951-100000@backup.af.speednet.com.au>; from andyf@speednet.com.au on Thu, Dec 30, 1999 at 02:40:46AM %2B1100
References:  <19991228171415.B7516@dragon.nuxi.com> <Pine.BSF.4.10.9912300206010.951-100000@backup.af.speednet.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991229185429.B16090>