Log in

View Full Version : Syntax Error


wingnut1705
03-02-2007, 13:23
Im trying to compile my code in MPLAB, but when ever it comes to user_routines_fast.c it comes with an error

After the very end of the file, the compiler goes to the next line and then calls a syntax error. And if I comment that line out, it just goes to the next line and calls another error

How can i fix this?

sparkydp
03-02-2007, 13:39
It sounds like you're missing a closing brace somewhere. Short of seeing the code, make sure every opening brace, has a closing brace.. or that your last statement has a semicolon.

wingnut1705
03-02-2007, 13:45
I checked all of that yet I am still getting an error.
It looks like this--

/* Add code to handle incomming data (remember, interrupts are still active) */;
}


/************************************************** ****************************/
/************************************************** ****************************/
/************************************************** ****************************/
(the code ends on the line above and a syntax error is being called on this line)

sparkydp
03-02-2007, 13:46
you've got a semicolon that's uncommented, what happens if you remove it?

wingnut1705
03-02-2007, 13:48
I tried that and it still doesnt work.

sparkydp
03-02-2007, 13:54
message sent.

sparkydp
03-02-2007, 15:39
sizolved.