www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/07/07:03:30

Date: Tue, 7 Jul 1998 14:01:48 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "Bradley A. Barrett" <bbarrett AT isr DOT umd DOT edu>
cc: djgpp AT delorie DOT com
Subject: Re: Win32: RSXNTDJ works but here are some bugs(?)
In-Reply-To: <6nqsrm$aqe@dailyplanet.wam.umd.edu>
Message-ID: <Pine.SUN.3.91.980707135937.1727J-100000@is>
MIME-Version: 1.0

On Mon, 6 Jul 1998, Bradley A. Barrett wrote:

> I have encountered the same problem.  The following code works fine when
> compiled as a DJGPP DOS program, but crashes at the first feof(infile) call
> with "Exception at 0x00000000; Application got SIGSEGV" when compiled
> with -Zwin32:

It seems that the RSXNTDJ linker doesn't link in the feof function, 
expecting it to be in some DLL, or maybe just because of a bug.  This 
version of linker doesn't print any warning when some functions are 
missing because it assumes it will be found in some DLL at run time.  
Unresolved externals are recorded as zeroes in the executable, and then 
the program crashes when it tries to call the zero address.

- Raw text -


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