Sender: nate AT cartsys DOT com Message-ID: <362FB214.7264F6F0@cartsys.com> Date: Thu, 22 Oct 1998 15:30:44 -0700 From: Nate Eldredge X-Mailer: Mozilla 4.05 [en] (X11; I; Linux 2.0.35 i486) MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: DGJPP "Abort!"ing References: <362fa718 DOT 12667874 AT news DOT cc DOT umanitoba DOT ca> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com 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