delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/05/13:18:17

From: mauch AT uni-duisburg DOT de (Michael Mauch)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP (actually gcc on many platforms)
Date: Fri, 05 Sep 1997 17:13:58 +0200
Organization: Home, sweet home (via Gesamthochschule Duisburg)
Lines: 30
Message-ID: <34101867.480299@news.uni-duisburg.de>
References: <340F3E86 DOT 89BA2A51 AT rmorton DOT com>
NNTP-Posting-Host: ppp61.uni-duisburg.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Thu, 04 Sep 1997 16:04:38 -0700, Andrew Bober <abober AT rmorton DOT com>
wrote:

> The UNIX platforms crash with the error: "Internal Compiler Error"
> DJGPPP simply quits with the message: "Abort!"

It compiles fine on my copy of DJGPP v2.01, even with 
	gxx -Wall -pedantic -o tt.exe tt.cc

when I "complete" the program with

int main()
{
  ErrorExample Hi;
}
 
Hmm, shouldn't it warn about "control reaches end of non-void function"
or is this for C programs only?

And: shouldn't you use brackets ([]) after the delete operators here?

>    ~ErrorExample()  
>     {
>        delete StringArray1;
>        delete StringArray2;
>     }
> };

Regards...
		Michael

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019