ID Number: Q32068
5.10 6.00 6.00a 6.00ax 7.00 | 5.10 6.00 6.00a
MS-DOS | OS/2
Summary:
SYMPTOMS
When compiling a file that includes STAT.H or STAT.H followed by an
include of TYPES.H, the following error is generated:
C2061 syntax error: identifier 'dev_t'
CAUSE
This is expected behavior. The error occurs because dev_t is
defined in TYPES.H and is not defined in STAT.H.
RESOLUTION
When using the include file STAT.H, you must also include the file
TYPES.H. Specifically, the file TYPES.H must be included before the
file STAT.H. For example:
#include <sys\types.h>
#include <sys\stat.h>
The order in which these files are included must occur as shown to
eliminate the compiler error message.
Additional reference words: 6.0 6.00 6.0a 6.00a 6.0ax 6.00ax 7.00