I don't understand why this fails to compile:
#include <SomeType.h> // has a namespace called SomeNamespace
class MyApplication;
int main(...)
{
...
MyApplication application;
...
}
class MyApplication : public SomeNamespace::SomeType {
...
};
As it stands I'm getting this error from g++ (Ubuntu 4.4.3-4ubuntu5) 4.4.3
../fix-protocol/main.cpp:44: error: aggregate ‘MyApplication application’ has incomplete type and cannot be defined