Compiler Error C2146

syntax error : missing 'token' before identifier 'identifier'

The compiler expected the given token to appear before the given identifier.

Tips

This error is usually preceeded by error C2065. The most typical cause of this error is a typographical problem. For example:

void main(void)
{
   intt x; //Syntax error: missing semicolon before 'x'
}