Without seeing the included files, it is hard to guess. However, you cannot use
CareerEntry
class before, at least, a forward declaration.
I mean, the following program is
incorrect:
#include <iostream>
using namespace std;
class Foo
{
typedef Bar B;
B * b();
};
class Bar
{
};
Bar * Foo::b(){return new Bar();}
int main(){}
because of a missing forward declaration. The following one is fixed:
#include <iostream>
using namespace std;
class Bar;
class Foo
{
typedef Bar B;
B * b();
};
class Bar
{
};
Bar * Foo::b(){return new Bar();}
int main(){}