PDA

View Full Version : error '{' and '}'



kazal
29th June 2010, 06:02
hi, i got error like this..

error: a function-definition is not allowed here before '{' token
error: expected '}' at end of input

what these two errors means?

ChrisW67
29th June 2010, 07:00
They mean that you have a function definition where one is not permitted, i.e. exactly what the words say. This possibly arises because you are missing a closing brace or semicolon earlier in the file.