title: LNK2019 error c++ unresolved external symbol
body: <p>Ive got these error messages:</p>
  
  <blockquote>
    <p>Error 1   error LNK2019: unresolved
    external symbol "public: void
    __thiscall ArrayIntStorage::sortOwn(void)"
    (?sortOwn@ArrayIntStorage@@QAEXXZ)
    referenced in function
    _main G:\08227\ACW\MAIN\08227_ACW2_Test_Harnesses_2010-11\C_Style_Array\main.obj  C_Style_Array</p>
    
    <p>Error 2   error LNK2019: unresolved
    external symbol "public: void
    __thiscall ArrayIntStorage::sortStd(void)"
    (?sortStd@ArrayIntStorage@@QAEXXZ)
    referenced in function
    _main G:\08227\ACW\MAIN\08227_ACW2_Test_Harnesses_2010-11\C_Style_Array\main.obj  C_Style_Array</p>
    
    <p>Error 3   error LNK2019: unresolved
    external symbol "class
    std::basic_ostream > &amp; __cdecl
    operator&lt;&lt;(class
    std::basic_ostream > &amp;,class
    ArrayIntStorage const &amp;)"
    (??6@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV01@ABVArrayIntStorage@@@Z)
    referenced in function
    _main G:\08227\ACW\MAIN\08227_ACW2_Test_Harnesses_2010-11\C_Style_Array\main.obj  C_Style_Array</p>
    
    <p>Error 4   error LNK2019: unresolved
    external symbol "class
    std::basic_istream > &amp; __cdecl
    operator>>(class
    std::basic_istream > &amp;,class
    ArrayIntStorage &amp;)"
    (??5@YAAAV?$basic_istream@DU?$char_traits@D@std@@@std@@AAV01@AAVArrayIntStorage@@@Z)
    referenced in function
    _main G:\08227\ACW\MAIN\08227_ACW2_Test_Harnesses_2010-11\C_Style_Array\main.obj  C_Style_Array</p>
    
    <p>Error 5   error LNK2019: unresolved
    external symbol "public: bool
    __thiscall ArrayIntStorage::setReadSort(bool)"
    (?setReadSort@ArrayIntStorage@@QAE_N_N@Z)
    referenced in function
    _main G:\08227\ACW\MAIN\08227_ACW2_Test_Harnesses_2010-11\C_Style_Array\main.obj  C_Style_Array</p>
    
    <p>Error 6   error LNK1120: 5 unresolved
    externals G:\08227\ACW\MAIN\08227_ACW2_Test_Harnesses_2010-11\C_Style_Array\Debug\C_Style_Array.exe   1   1   C_Style_Array</p>
  </blockquote>
  
  <p>and I dont know whats going on, I wonder if ive missed something?
  I am new to this and Its not giving me any line numbers so Im not sure which code to give you so Ill give you this part</p>
  
  <pre><code>#include &lt;fstream&gt;
  #include &lt;iostream&gt;
  using namespace std;
  #include "ArrayIntStorage.h"
  
  int main(int argc, char **argv) {
  
  ifstream fin1("ACW2_data.txt");
  ofstream out1("1-arrayUnsortedRead.txt");
  ofstream out2("2-arrayUnsortedRead-thenSTDSort.txt");
  
  if(!fin1.is_open()) 
  {
      cout &lt;&lt; "FAIL" &lt;&lt; endl;
      return 1;
  }
  
  ArrayIntStorage arrayStorage1;
  arrayStorage1.setReadSort(false);   // do not read sort
  
  // read in int values into data structure
  fin1 &gt;&gt; arrayStorage1;
  
  // output int values in data structure to file
  out1 &lt;&lt; arrayStorage1;
  
  // sort data structure using std
  arrayStorage1.sortStd();
  
  // output int values in data structure to file
  out2 &lt;&lt; arrayStorage1;
  
  fin1.close();
  out1.close();
  out2.close();
  </code></pre>