title: undefined reference to vtable for ...
body: <p>I am trying to write an Http proxy that basically works like <a href="http://sourceforge.net/projects/indiawebproxy/" rel="nofollow noreferrer">indianwebproxy</a></p>
  
  <p>So i fired up qtcreator and but one of my classes is failing to compile with the infamous error : <code>undefined reference to vtable for HttpProxyThreadBrowser</code>. I can't figure out why its doing this. I read through similar questions on Stackoverflow and apparently <a href="https://stackoverflow.com/questions/3065154/undefined-reference-to-vtable">the problem is with undefined virtual methods that are not pure</a> But i have not declared any virtual functions. Here is my class</p>
  
  <pre><code>class HttpProxyThreadBrowser : public QThread
  {
  public:
      HttpProxyThreadBrowser(QTcpSocket outgoingSocket,QTcpSocket  browserSocket,QObject *parent = 0);
      ~HttpProxyThreadBrowser(){};
      void run();
  
  private:
      QTcpSocket outgoingSocket;
      QTcpSocket browserSocket;
  
  };
  </code></pre>
  
  <p>And I define the class here in <a href="http://pastebin.com/UWQyQdyM" rel="nofollow noreferrer">pastebin</a> so as not to bore you. Unfortunately i cant find out why the vtable is undefined. Please assist.</p>
  
  <pre><code>httpproxythreadbrowser.cpp:5: undefined reference to `vtable for HttpProxyThreadBrowser
  collect2: ld returned 1 exit status
  </code></pre>