Mail Archives: djgpp/1997/09/05/18:33:37
Could it be a problem with the installation of gcc? If so, how could
the same error happen accross platforms so consistantly as it has for
me?
I haven't seen any conformations of the failure so I guess I'm the odd
ball out. I'm just really surprized that the same error manifested
itself, in the same place, on all our platforms -- DOS, DIGITAL, HP, and
SCO.
Thanks for your input.
Andy
BTW: Your right about the brackets when using operator delete on
arrays. I just added the d'ctor for completeness when posting the code
here on the new group. The compiler errors came with (and without) the
d'ctor. Also, I didn't try to "complete" the example I just compiled
with the -c switch. I'll try it your way too.
Michael Mauch wrote:
>
> 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 -