title: C++ Agent : Base class undefined error in Game
body: <p>I have 6 C++ header files.  There are a lot of includes so I tried to make it so that I use as little as I can.  But I keep getting an error from the very beginning saying that a class "Agent" is undefined.  I defined it and included it and can't find the problem here are the 2 header files that are causing the problem:</p>
  
  <p><strong>Sinbad.h:</strong></p>
  
  <pre><code>#ifndef SINBAD_H
  #define SINBAD_H
  
  #pragma once
  #include "Agent.h"
  
  #define NUM_ANIMS 13  // number of animations the character has. Should be made character specific
  
  class Agent;
  
  class Sinbad : public Agent {
  </code></pre>
  
  <p><strong>Agent.h:</strong></p>
  
  <pre><code>#ifndef AGENT_H
  #define AGENT_H
  
  #include &lt;deque&gt;
  #include "aStar.h"
  
  extern Ogre::SceneManager* sceneMgr; // Defined in main.cpp
  
  class GridNode; // forward declarations
  class Grid;
  class Astar;
  
  class Agent {
  </code></pre>
  
  <p><strong>Here's the error I am getting:</strong></p>
  
  <pre><code>1&gt;c\gameengine_solution\sinbad.h(12) : error C2504: 'Agent' : base class undefined
  </code></pre>