'C' enum syntax problem
Temporary
krishna at xenon.uucp
Tue Apr 18 03:05:55 AEST 1989
I seem to have some problem in using the enum construct on Sun-3
m/c.
The following declarations generate an error.
typedef enum WEEK {
MONDAY, TUESDAY, WEDNESDAY,
THURSDAY, FRIDAY,
SATURDAY, SUNDAY
} ;
typedef enum WEEK_END {
SATURDAY, SUNDAY
} ;
The error messages are
redeclaration of SATURDAY
redeclaration of SUNDAY
Does it mean that subsets of an enum cannot be defined ?
Is this a bug in my C Compiler ?
What does PAns say about this ?
Is there a work around ?
Krishna
More information about the Comp.lang.c
mailing list