Mail Archives: djgpp/1998/07/07/07:03:30
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 -