Compiler Error C2628

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

For the latest documentation on Visual Studio 2017, see Compiler Error C2628 on docs.microsoft.com. 'type1' followed by 'type2' is illegal (did you forget a ';'?)

A semicolon may be missing.

The following sample generates C2628:

// C2628.cpp  
class CMyClass {}  
int main(){}   // C2628 error  

Possible resolution:

// C2628b.cpp  
class CMyClass {};  
int main(){}  

Show: