[CMake] CMake & MFC

David Cole david.cole at kitware.com
Thu Oct 20 11:47:52 EDT 2011


Is it possible to try VS 2005, 2008 or 2010 here?

I assume building an MFC app without CMake works on this system...?


On Thu, Oct 20, 2011 at 11:43 AM, Robert Dailey <rcdailey at gmail.com> wrote:
> 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
>
>
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>


More information about the CMake mailing list