title: VS2010 Linking issue on ostream
body: <p>I'm getting these errors:</p>
  
  <pre><code>1&gt;test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall     std::basic_ofstream&lt;char,struct std::char_traits&lt;char&gt; &gt;::`vbase destructor'(void)" (__imp_??_D?  $basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXXZ) referenced in function _main
  1&gt;test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall    std::basic_ofstream&lt;char,struct std::char_traits&lt;char&gt; &gt;::basic_ofstream&lt;char,struct std::char_traits&lt;char&gt;&gt;(void)" (__imp_??0?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAE@XZ) referenced in function _main
  </code></pre>
  
  <p>This test code works fine:</p>
  
  <pre><code>int main(int argc, char **argv)
  {
      std::ofstream game_record_output;
  }
  </code></pre>
  
  <p>until I include a .h from an older project that was converted from VS 2003 .NET</p>
  
  <p>Firstly I thought it could have some problem related with this:</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/8h8eh904(v=vs.90).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/8h8eh904(v=vs.90).aspx</a></p>
  
  <p>But then, I've already checked that just MSVCRT.LIB and MSVCPRT.LIB are being linked, so the old iostream is not being linked...</p>
  
  <p>I'm not sure why this happen, I'm supposing that in include chain some wrong file is being included, but I've already search the include chain for the old iostream .h's files (i.e: (fstream.h, iomanip.h, ios.h, iostream.h, istream.h, ostream.h, streamb.h, and strstrea.h) )</p>
  
  <p>So, is there anything else that I should check?</p>
  
  <p>The project use MFC.</p>