Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Error C2628
Collapse the table of content
Expand the table of content

Compiler Error C2628

'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(){}
© 2015 Microsoft