PDA

View Full Version : Syntax Error


wingnut1705
02-03-2007, 01:23 PM
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
02-03-2007, 01:39 PM
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
02-03-2007, 01:45 PM
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
02-03-2007, 01:46 PM
you've got a semicolon that's uncommented, what happens if you remove it?

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

sparkydp
02-03-2007, 01:54 PM
message sent.

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