www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/11/04:24:18

Date: Sun, 11 Aug 1996 11:19:00 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Ian Romanick <idr AT cs DOT pdx DOT edu>
Cc: djgpp AT delorie DOT com
Subject: Re: Crash before main strangeness.
In-Reply-To: <320B6F20.62A8@cs.pdx.edu>
Message-Id: <Pine.SUN.3.91.960811111312.24678S-100000@is>
Mime-Version: 1.0

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.

- Raw text -


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