title: How to resolve Link error 2005 in Visual Studio?
body: <pre><code>error LNK2005: "public: __thiscall std::basic_ostream&lt;char,struct std::char_traits&lt;char&gt; &gt;::basic_ostream&lt;char,struct std::char_traits&lt;char&gt; &gt;(class std::basic_streambuf&lt;char,struct std::char_traits&lt;char&gt; &gt; *,bool)" (??0?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits
  @D@std@@@1@_N@Z) already defined in msvcprtd.lib(MSVCP80D.dll)  libcpmtd.lib
  </code></pre>
  
  <p>I am getting this error when i try to include <code>/clr</code> option and <code>/MDd</code> options in subproject. </p>
  
  <p>Individually all the projects are building successfully but when I build main project it shows the above like errors. </p>
  
  <p>How to resolve this one?</p>
  
  <p>I am totally vexed.</p>