I did this and it links just fine... hmmm. Let me grep my source tree for &quot;mfc4&quot; and see what I get. I really am running out of ideas, I don&#39;t know what else to look for.<br clear="all"><div><br></div><div>---------</div>
Robert Dailey<br>
<br><br><div class="gmail_quote">On Thu, Oct 20, 2011 at 11:46 AM, Bill Hoffman <span dir="ltr">&lt;<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 10/20/2011 12:35 PM, Robert Dailey wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I just tried with VS2008 and I get the same:<br>
     fatal error LNK1104: cannot open file &#39;mfc40.lib&#39;<br>
<br>
Also I created a default MFC application using the new project wizard in<br>
VS2008 and it compiled &amp; linked just fine, so it seems like maybe this<br>
is a CMake issue?<br>
<br>
</blockquote>
<br></div>
Can you take the default MFC app that you created, and write CMake files for it?  Then see if that works?</blockquote></div>