Error: expected primary...before ; token

Hey there,

Brand spanking new programming student. Prepare to get a LOT of questions from me!

What does "Error: expected primary expression before ; token" mean?

Thanks so much
It means nothing without your code.
closed account (zb0S216C)
It can mean many things. However, it's scoped to the parser. Somewhere before a semi-colon, the parser expected an expression, but it encountered some other lexer token. For instance, lexical analysis of your source file could've generated a statement which contained a token that the parser did not expect; hence the error.

Wazzak
Last edited on
Topic archived. No new replies allowed.