INF: Include Filenames More Than Eight Characters Truncated

ID Number: Q48792

5.00 5.10 6.00 6.00a 6.00ax | 5.10 6.00 6.00a

MS-DOS | OS/2

Summary:

In Microsoft C versions 5.0, 5.1, 6.0, 6.0a, and 6.0ax, when given a

filename that is more than eight characters (excluding the extension),

the file system under MS-DOS truncates the filename to eight

characters. Because of this, the following include statement

#include <gefildefish.h>

looks for the following header file to resolve the reference:

gefildef.h

As long as the file GEFILDEF.H is found on the disk, no error or

warning message is displayed.

Under OS/2, however, the FAT file system does not truncate names, but

filenames with more than eight characters are not used. Therefore, the

following fatal error messages appear when specifying an include file

with more than eight characters:

C 6.0, 6.0a, 6.0ax

------------------

C1024: cannot open include file '<filename>'

C 5.1

-----

C1015: cannot open include file '<filename>'

Starting with OS/2 version 1.2, users have the option of using the

High Performance File System (HPFS) or other installable file systems.

HPFS allows for filenames with more than eight characters.

This problem also occurs in QuickC versions 1.01, 2.0, 2.5 and

QuickAssembler versions 2.01 and 2.51.

Additional reference words: 1.20 2.00 2.50 5.00 5.10 6.00 6.00a 6.00ax