I've got this class:
class Object3D
{
private:
Scene *scene;
public:
Transform transform;
Object3D();
};
And this is Scene:
class Scene
{
private:
void AddObject(Object3D* obj);
public:
std::vector<Object3D*> Objects;
std::vector<Mesh*> Meshes;
unsigned int ObjectCount;
void AddMesh(Mesh* mesh);
};
I am getting these errors on the declaration of scene:
C4430 : missing type specifier - int assumed. Note: C++ does not support default-int
C4430 : missing type specifier - int assumed. Note: C++ does not support default-int
C2143 syntax error: missing ';' before '*'
C2143 syntax error: missing ';' before '*'
C2238 : unexpected tokens before ';'
C2238 : unexpected tokens before ';'
I really don't understand why.