Cpp gotchas
From wikinotes
I doubt that I will look back on this frequently, but just for the sake of having a record, here is a list of things that tripped me up when I was first getting started:
all files must have main()
Every file, even files that are destined only to be *.o files must have at least:
int main() {}
class definitions must end in semicolon
class MyClass { void _my_method_a (); void _my_method_b (); }; // <---