title: Visual studio 2010 C++ project link failure: fatal error LINK1171: unable to load ole32.dll
body: <p>I'm trying to build a VC++ project. It was working fine without errors but after adding some classes which call .Net Framework dlls by below directives:</p>
  <pre><code>#using &quot;mscorlib.dll&quot;
  #using #System.dll&quot;
  #using &quot;System.Data.dll&quot;
  #using &quot;System.Xml.dll&quot;
  </code></pre>
  <p>And setting <code>Use Managed Extensions</code> to <code>Yes</code>, the project does not build successfully and reports:</p>
  <blockquote>
  <p>fatal error LINK1171: unable to load ole32.dll</p>
  </blockquote>
  <p>during the link process.</p>
  <p>I never used <code>ole32.dll</code> and compiler does not show where does it need this dll.</p>
  <p>Do you have any idea how to resolve this issue?</p>