Date: Tue, 7 Jul 1998 14:01:48 +0300 (IDT) From: Eli Zaretskii To: "Bradley A. Barrett" 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.