Monday, November 17, 2008

Error C2628::Missing semicolon at the end of the class.

  • The error is perhaps the most common errors to encounter among C++ newbies.
class Foo {
// empty
} // Note: no semicolon
int main()
{
return 0;
}

  • Remember to include a semi colon after each class to avoid the error.