title: Linker Error undefined reference to vtable
body: <p>I seem to be having an issue with a wxWidgets project I'm working on. I keep getting a vtable linker error for a class that doesnt involve any virtual functions. I was wondering if someone could shed some light on this issue, since in my understanding there shouldnt be a vtable for a class that doesnt use virtual functions. Most similar topics I've seen occur when someone forgets the define the deconstructor, but I'm pretty sure the deconstructor was correctly defined.  the errors can be seen below.</p>
  
  <pre><code>||=== Hike Planner GUI, Debug ===|
  obj\Debug\GUIFrame.o||In function `PlanWindow':|
  E:\Projects\Hike Planner GUI\GUIFrame.cpp|76|undefined reference to `vtable for              PlanWindow'|
  E:\Projects\Hike Planner GUI\GUIFrame.cpp|76|undefined reference to `vtable for PlanWindow'|
  obj\Debug\GUIFrame.o||In function `~PlanWindow':|
  E:\Projects\Hike Planner GUI\GUIFrame.cpp|81|undefined reference to `vtable for PlanWindow'|
  E:\Projects\Hike Planner GUI\GUIFrame.cpp|81|undefined reference to `vtable for PlanWindow'|
  E:\Projects\Hike Planner GUI\GUIFrame.cpp|81|undefined reference to `vtable for PlanWindow'|
  ||=== Build finished: 5 errors, 0 warnings ===|
  </code></pre>
  
  <p>segment from GUIFrame.h</p>
  
  <pre><code>class PlanWindow : public wxWindow
  {
      DECLARE_EVENT_TABLE()
  
      public:
          PlanWindow(wxWindow* parent, wxWindowID id);
  
          ~PlanWindow();
  
          void GetLocationList(int RetCode);
  
          wxListBox *PlanList;
  };
  </code></pre>
  
  <p>Segment from GUIFrame.cpp:</p>
  
  <pre><code>PlanWindow::PlanWindow(wxWindow* parent, wxWindowID id) : wxWindow(parent,id) 
  {
  
  }
  
  PlanWindow::~PlanWindow()
  {
  
  }
  
  void PlanWindow::GetLocationList(int RetCode)
  {
      if(RetCode == DEST)
      {
  
      }
      else if(RetCode == TH)
      {
  
      }
      else if(RetCode == FREE)
      {
  
      }
      else
      {
  
      }
  }
  </code></pre>
  
  <p>any help at all would be great. the errors occur at the contructor and destructor definitions.</p>