www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/23/11:01:33

From: Endlisnis <s257m AT unb DOT ca>
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: <Pine DOT SUN DOT 3 DOT 91 DOT 980823163656 DOT 1451I-100000 AT is>
NNTP-Posting-Host: fctnts13c50.nbnet.nb.ca
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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




- Raw text -


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