Compiler Error C2145

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Compiler Error C2145.

syntax error : missing 'token' before identifier

The compiler expected token and found identifier instead.

This error may be caused by a missing semicolon after the last declaration in a block.

Show: