title: Read ini file C++ error
body: <p>I have an ini file that has this info:
  and this is my code:    </p>
  
  <pre><code>#include "stdafx.h"
  #include "iostream"
  #include &lt;stdio.h&gt;
  #include "IniReader.h"
  #include "INIReader.h"
  
  using namespace std;
  int main(int argc, char * argv[])
  {
      INIReader reader("C:\SampleFile.ini");
  
      if (reader.ParseError() &lt; 0) {
     cout &lt;&lt; "Can't load 'test.ini'\n";
          return 1;
      }
      std::cout &lt;&lt; "Config loaded from 'test.ini': version="
                &lt;&lt; reader.GetInteger("info", "CaptureDuration", -1) &lt;&lt; "CaptureDuration"&lt;&lt;"\n"
                &lt;&lt; reader.Get("info", "DayStart", `enter code here`"UNKNOWN") &lt;&lt; ", email="; 
  
  
  cin.get();
   return 0;   
  }
  </code></pre>
  
  <p>I also attached the INIReader header file that I found from this link:
  <a href="https://code.google.com/p/inih/source/browse/trunk/cpp/INIReader.h" rel="nofollow">https://code.google.com/p/inih/source/browse/trunk/cpp/INIReader.h</a>
  I want the code to print the integer and the string values that it got from the ini file. but I am getting Linker errors. How can I fix it?</p>
  
  <pre><code>Errors:
  ,class std::allocator&lt;char&gt; &gt;,class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;,class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;)" (?Get@INIReader@@QAE?AV?$
  
  1&gt;main.obj : error LNK2019: unresolved external symbol "public: int __thiscall INIReader::ParseError(void)" (?ParseError@INIReader@@QAEHXZ) referenced in function _main
  @D@std@@V?$allocator@D@2@@std@@@Z) referenced in function _main
  
  1&gt;C:\Users\Owner1\Documents\Visual Studio 2008\Projects\inireader\Debug\inireader.exe : fatal error LNK1120: 4 unresolved externals
  </code></pre>
  
  <p>I do't see any lib file to link to this project, where should I get the lib files?</p>