View Single Post
  #1   Spotlight this post!  
Unread 28-01-2008, 20:22
Mr. Freeman Mr. Freeman is offline
Put better title here.
AKA: Kellan
no team (CSM Robotics)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Colorado
Posts: 198
Mr. Freeman is a splendid one to beholdMr. Freeman is a splendid one to beholdMr. Freeman is a splendid one to beholdMr. Freeman is a splendid one to beholdMr. Freeman is a splendid one to beholdMr. Freeman is a splendid one to beholdMr. Freeman is a splendid one to behold
Problem with printf()

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.
__________________
"Time is an illusion, lunchtime doubly so."
-Douglas Adams
“Why is it that I can walk into Wal-Mart and buy boxes of bullets and black powder, but I can’t buy potassium perchlorate to do science because it can also be used to make explosives?”
-Theodore Gray