title: error LNK2019: unresolved external symbol (simple code)
body: <p>this is a pretty simple code that just is coming up with an error even though I have it written the same way other people doing the same code have it</p>
  
  <blockquote>
    <p>1>assigntment5.obj : error LNK2019: unresolved external symbol "class std::basic_string,class std::allocator > __cdecl promptForString(class std::basic_string,class std::allocator >)" (?promptForString@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@@Z) referenced in function _main
    1>c:\users\aweb\documents\visual studio 2010\Projects\Assignment5\Debug\Assignment5.exe : fatal error LNK1120: 1 unresolved externals</p>
  </blockquote>
  
  <p>the .cpp file</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  #include "anw65_Library.h"
  
  using namespace std;
  
  string promptForString(string prompt);
  
  int main()
  {
  string name = promptForString("What is the filename?: ");
  
  system("pause");
  return 0;
  }   
  </code></pre>
  
  <p>the .h file</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;iomanip&gt;
  #include &lt;string&gt;
  
  using namespace std;
  
  static string promptFromString(string prompt)
  {
  string filename;
  cout &lt;&lt; prompt;
  cin &gt;&gt; filename;
  return filename;
  }  
  </code></pre>