Mail Archives: djgpp/1998/10/22/17:38:30
LupusNoctus wrote:
>
> Yet another entry in the screwy compile error Saga:
> I'll begin with the error text:
>
> C:\74.206\assn2>gxx a2q2.cpp -O -o go2.exe -Wall
> a2q2.cpp:26: warning: return type for `main' changed to `int'
> Abort!
>
> What gives? I would be able to deal with this if it gave me some sort
> of line #s to look at, but just plain giving up? I can't understand
It does; it mentions line 26. It seems that your `main' function was
not declared as returning `int', which ANSI requires, so GCC changed it
for you. The "Abort!" may or may not be related to this error (though
see if it goes away when you fix it); strictly speaking, it's a compiler
bug. If you'll send me the source as it is, I'll try to track it down
and report it to the GCC maintainers.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -