How to create an MFC library from source using Visual Studio 2010

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

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

.. so maybe this is an oversight or maybe they moved it to msbuild but forgot to include the mfc msbuild project file.

If someone successfully created a custom MFC based on that in VS2010, how did you create it? Can I use the makefile from VS2008 with minimal settings? Or does anyone have an msbuild script for it?

I'm only interested in a statically linked library that will be used with a specific application.

+4
source share
1 answer

since at the end MFC is a library like any other, you can simply create a new project in visual studio and add all the MFC source files to it. Set the parameters for creating a static library, set the compilation / linker parameters as desired (ultimately, based on the make 2008 file), and you are ready to go.

+1
source

All Articles