title: VC++ 2010 error LNK2019: unresolved external symbol
body: <p><strong>main cpp file:</strong></p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;cstdio&gt;
  
  #include "table.h"
  
  using namespace std;
  
  int main() {
  
      Table test;
  
      int i;
      for(i = 0; i &lt; 26; i++) {
          cout &lt;&lt; test.start[2] &lt;&lt; endl;
      }
  
      system("PAUSE");
      return 0;
  }
  </code></pre>
  
  <p><strong>header file:</strong></p>
  
  <pre><code>#pragma once
  
  
  class Table {
      public:
          char start[26];
  
          Table();
          Table(char key[26]);
  
          ~Table();
  };
  </code></pre>
  
  <p><strong>cpp file:</strong></p>
  
  <pre><code>#include "table.h"
  
  
  Table::Table() {
      char start[26] = "ABCDEFGHIJKLMNOPRSTUVWXYZ";
  }
  
  Table::Table(char key[26]) {
  
  }
  </code></pre>
  
  <p>errors im getting : </p>
  
  <pre><code>1&gt;playfair.obj : error LNK2019: unresolved external symbol "public: __thiscall Table::~Table(void)" (??1Table@@QAE@XZ) referenced in function _main
  
  1&gt;c:\Users\Jansu\Documents\Visual Studio 2010\Projects\playfair\Debug\playfair.exe : fatal error LNK1120: 1 unresolved externals
  </code></pre>
  
  <p>so basically i googled a lot and do not know what to do. i found some answers but i tried them and did not help</p>
  
  <p>for example i tried to <strong>add additional dependencies</strong>, but i had all of them already added.</p>
  
  <p>help me please, why does the error come?</p>