Old bug: the 14-character limit.

Michael S. Zick mszick@goquest.com
Sat May 24 02:19:00 GMT 2003


On Friday 23 May 2003 03:53 pm, DJ Delorie wrote:
> > Is there a documented upper limit on file name length for the gcc tree?
>
> I don't know of any hard limits, but as long as files are unique in
> the 8.3 characters (i.e. first 8 characters of the basename, first 3
> characters of the extension), even DJGPP won't care about the length.
>
> IIRC Windows has a hard upper limit on total path size, but I forget
> what it is.  DJGPP's MAXPATH is 260 (for LFN; 80 for SFN), which is
> probably related to the Windows limit.
Some GNU/Linux systems use:

[root@wolf686 mszick]# stat -f /dev/hda
  File: "/dev/hda"
    ID: 0        0        Namelen: 255     Type: EXT2



More information about the Gcc mailing list