Can someone explain what might cause this error?
Error: Invalid base class
I have two classes in which one of them is derived from the second:
#if !defined(_CGROUND_H) #define _CGROUND_H #include "stdafx.h" #include "CGameObject.h" class CGround : public CGameObject
And CGameObject looks like this:
#if !defined(_CGAMEOBJECT_H) #define _CGAMEOBJECT_H #include "stdafx.h" class CGameObject { protected: int m_id; std::string m_name; std::string m_description; std::string m_graphics[]; public: virtual bool draw(); CGameObject() {} CGameObject(int id, std::string name, std::string description, std::string graphics) {} virtual ~CGameObject(void); }; #endif
I tried to clean my project, but in vain.
source share