View Single Post
  #1   Spotlight this post!  
Unread 04-02-2005, 16:53
katkana katkana is offline
that programmer chick
AKA: Gillian Koch
FRC #1412 (Mercedes Metalheads)
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Hackensack
Posts: 28
katkana is on a distinguished road
Send a message via AIM to katkana
Question Syntax Problems...

I'm in the process of writing an autonomous code for our 'bot, but when I tried to compile, I was hit with a syntax error in the file I'd edited the auto code into. Common problem, yes, but the line reference was one of the original code lines. (I should also note that the ONLY editing I've done to the file was to add the autonomous code... no changes were made to any other line).

Here's the error message:
Code:
Executing: "c:\mcc18\bin\mcc18.exe" -p=18F8520 "user_routines_fast_edit.c" -fo="user_routines_fast_edit.o" /i"C:\mcc18\h" -D_FRC_BOARD -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
X:\USFirst-Klaube\C Programming\FrcCode\user_routines_fast_edit.c:111:Error: syntax error
And the line reference:
Code:
while (autonomous_mode)   /* DO NOT CHANGE! */
... I also compiled the code without a space between while and (, but the same message popped up. Am I missing something here?

While I'm at it, I might as well add a question: some of the files in the output window popped up as 'out of date'.
PHP Code:
MakeThe target "X:\USFirst-Klaube\C Programming\FrcCode\user_routines_fast_edit.o" is out of date
Is this something I need be concerned with?

Thanks for the help in advance...

~kat