4
votes

Visual Studio has historically always included the MFC library as source so you can build it yourself with the supplied makefile. But in Visual Studio 2010 there is no makefile for MFC. So, how can you rebuild it?

There is documentation on MS implying the makefile should be there: http://msdn.microsoft.com/en-us/library/bs046sh0.aspx

.. so perhaps its an oversight, or perhaps they migrated it to msbuild but forgot to include the mfc msbuild project file.

If anyone has succesfully built a custom MFC based on that in VS2010 how did you build it? Can the makefile from VS2008 be used with minimal tweaks? Or does anyone have an msbuild script for it?

I'm only interested in a statically linked library to be used with a specific app.

1

1 Answers

1
votes

since in the end MFC is a library as any other, you can just create a new project in visual studio and add all MFC source files to it. Set the options to create a static library, set compilation/linker options as desired (eventually based on the 2008 makefile) and you're ready to go.