From: Endlisnis Newsgroups: comp.os.msdos.djgpp Subject: Re: long header file names possible in gcc NT 4.0? Date: Sun, 23 Aug 1998 11:30:41 -0300 Organization: NBTel Internet Lines: 49 Message-ID: <35E02791.8EA28C68@unb.ca> References: NNTP-Posting-Host: fctnts13c50.nbnet.nb.ca Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Eli Zaretskii wrote: > > > does this mean that long header file names are not supported at all by gcc > > > under NT? > > In the standard package, yes. If you wish to fix the problem, > > then ensure you have "SET LFN=n" in your autoexec.bat file > Not needed. DJGPP startup code will see that the LFN API isn't > supported and will turn it off automatically, even if you set LFN=y. I've had many problems running DJGPP under NT. RHIDE will not work, it always crashes with error message 'Divide Overflow' during the first screen write. None of the compiler programs would run properly until 'LFN=n' was set. GCC would do screwy things like write random ASCII characters to the screen. After 'LFN=n' was set, everything except RHIDE worked. But now things appear to compile differently under NT than they do under Win95. My friend (who is working at the NT workstation) wrote a program: void Noth() {} int main() { for(int i=0; i<20000; i++) Noth(); return 0; } And, when compiled (using the same batch file) under NT & 95, yeild different EXE's (the one created under NT was about 1k bigger). And the NT-compiled exe crashes on both machines. He added some lines to open a file, write the value of 'i' to it, and close the file each time through the loop, so we could see when it crashed. It seems to crash randomly between the 42nd and 2000th time calling the function. > > There is a way to turn this off in Win95, is there a way > > to turn this off under NT? > Yes, you can disable numeric tails in NT as well, and by the same > procedure. We've tried that, with no effect. We had to rename all files with longer than 8.3 names to their truncated 8.3 version. -- (\/) Endlisnis (\/) s257m AT unb DOT ca Endlisnis AT GeoCities DOT com Endlis AT nbnet DOT nb DOT ca