Forum Discussion
Altera_Forum
Honored Contributor
17 years agoC-Typedef struct with µClinux
Hi all, I'm trying to use in my header file the simple following code : typedef enum { COUNTER1 = 0, COUNTER2 = 1, } ERRORCOUNTER; and in my .c main file something ...
Altera_Forum
Honored Contributor
17 years agoThe simple answer is of course you can typedef structs and enums. Your example is not complete enough to see what's wrong. The obvious question is: did you include the header? good luck, Alex