Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

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(){}
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.