S
Steve
Hi,
in my header file I write:
typedef enum
{
RED,
GREEN,
BLUE
} Colors;
and in my C-source file I write:
static Colors color = RED;
Unfortunately I get a compiler error:
syntax error : identifier 'color'
Why? What is the correct way of using an enum?
Steve
in my header file I write:
typedef enum
{
RED,
GREEN,
BLUE
} Colors;
and in my C-source file I write:
static Colors color = RED;
Unfortunately I get a compiler error:
syntax error : identifier 'color'
Why? What is the correct way of using an enum?
Steve