gcc 4.4.4 c89
I have the following in state.c file:
enum State { IDLE_ST, START_ST, RUNNING_ST, STOPPED_ST, }; State g_current_state = State.IDLE_ST;
When I try and compile, I get the following error.
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'g_current_state'
Are there some with a variable declaration of enum type in the global scope?
Thanks so much for any suggestions,
c
ant2009
source share