Mail Archives: djgpp/1996/12/18/10:40:14
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 -