I'm getting the weirdest syntax error ever. My code is as follows (This is in the user_routines.c file)
Code:
void Process_Data_From_Master_uP(void)
{
printf("lkjhjasfdkjhashddsfkjlkasdhfdlkjkljsadhfklkjasjdhf");
// for debugging
static int counter = 0;
When I remove the printf statement, the program compiles but the printf's that are farther down don't get printed. With the printf() statement in, the compiler returns a syntax error on the following line:
static int counter = 0;
The error returned is:
Code:
C:\2008_code_svn\08_bot_working\user_routines.c:199:Error: syntax error
Halting build on first failure as requested.
BUILD FAILED: Mon Jan 28 18:17:43 2008
I can't find anything wrong with this line or any above it. I don't know why I'm getting a syntax error. Any help would be much appreciated.