My code was working fine, until I tried to wrap all of my class definitions in a namespace.
// "Player.h"
#include "PhysicsObject.h"
namespace MaelstromII
{
class Player : public MaelstromII::PhysicsObject
{
// ...
};
}
// "PhysicsObject.h"
#include "GameObject.h"
namespace MaelstromII
{
class PhysicsObject : public MaelstromII::GameObject
{
// ...
};
}
// "GameObject.h"
namespace MaelstromII
{
class GameObject
{
// ...
};
}
When I compile in Visual Studio, I get a bunch of these errors:
error C2039: 'PhysicsObject' : is not a member of 'MaelstromII'
It complains about GameObject
, too.
Does anyone know why this is?