[CMake] CMake & MFC

Robert Dailey rcdailey at gmail.com
Thu Oct 20 11:43:09 EDT 2011


Going to bump this thread in hopes I get a more urgent response. I'm very
much blocked on this until I can figure out why my project is trying to find
mfc40.lib when I only have mfc71.lib on my system.

I looked through the C++ code for #pragma comment(lib, ... ) directives, I
found none. I looked at my system include/library paths in Tools >> Options
in Visual Studio 2003, I find nothing strange.

Please help guys, I really need a quick solution!! I appreciate in advance
any help!

On Tue, Oct 18, 2011 at 3:10 PM, Robert Dailey <rcdailey at gmail.com> wrote:

> I've enabled MFC by setting CMAKE_MFC_FLAG to 2. I'm using CMake 2.8.6 and
> I'm generating for Visual Studio 7.1.
>
> When I'm linking, I get the following error:
>
>     uploadlog fatal error LNK1104: cannot open file 'mfc40.lib'
>
> On my system I only have mfc71.lib. Why is it trying to load version 4.0?
>
> ---------
> Robert Dailey
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20111020/eb1e1427/attachment.htm>


More information about the CMake mailing list