www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/18/10:40:14

Date: Wed, 18 Dec 1996 17:28:42 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "Dr. John Refling" <refling AT comet DOT lbl DOT gov>
cc: djgpp AT delorie DOT com
Subject: Re: compiling with long file names under win95
In-Reply-To: <597v0k$klo@overload.lbl.gov>
Message-ID: <Pine.SUN.3.91.961218172510.23536H-100000@is>
MIME-Version: 1.0

On 18 Dec 1996, Dr. John Refling wrote:

> I can't get djgpp to recognize a long filename in a dos box on win95, eg,
> 
> gcc thisisalongfilename.c
> 
> complains:
> 
> gcc.exe: thisisalongfilename.c: no such file or directory (ENOENT)
> gcc.exe: No input files
> 
> Am I missing something simple here?  Thanks.

You didn't tell DJGPP to support long filenames.  It is disabled by 
default.  You have two alternatives:

	1) set LFN=y in the environment in the DOS box before running 
DJGPP programs.

	2) edit DJGPP.ENV file and change this line:

	   	+LFN=n

	   to say this:

		+LFN=y

That's all!  For more details about LFN support, read the documentation 
of library function `_use_lfn' in the libc reference (file 
info/libc.inf).  I suggest you indeed read that docs, since there are 
more hidden features waiting there to be discovered by you.

- Raw text -


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