Compiler Error C2628

'type1' followed by 'type2' is illegal (did you forget a ';'?)

A section of code between the two specified types was incorrect.

This error can be caused by a missing semicolon.

The following is an example of this error:

class C
{
public:
   void func( void ) {;}
}                         // semicolon is missing here
void main() {}            // error detected on this line