Date: Sun, 11 Aug 1996 11:19:00 +0200 (IST) From: Eli Zaretskii To: Ian Romanick Cc: djgpp AT delorie DOT com Subject: Re: Crash before main strangeness. In-Reply-To: <320B6F20.62A8@cs.pdx.edu> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 9 Aug 1996, Ian Romanick wrote: > Further, if I comment out a certain line in one of my source files, it > works just fine. Note, that this line is NEVER executed. In fact, my > main() is just: > > main() > { > return 0; > } It is not clear from your message whether the above simple main is the only function in your source, and it generates a program that crashes, or if there is more code in your program. If there is more, please post the other code, or at least the function where that line causing the crash resides. The startup code is just another library function, so it might crash the program just like any other function (yours or otherwise). It might be a library bug, or something in your program or in your hardware/software configuration that causes the startup code to crash. Without more info, it is hard to tell.