GNOME Bugzilla – Bug 549525
gtkmm/glibmm MSVC builds need not require MFC
Last modified: 2008-10-05 14:13:32 UTC
Please describe the problem: Armin, I'm opening this bug for completeness sake since the MFC header problem was discussed tangentially on bug #549343. All .rc.in files in the gtkmm/glibmm projects should be patched: a) to remove the #include <resource.h> header and b) to replace the #include <afxres.h> header with #include <windows.h> The existing headers assume the installation of MFC (MS foundation classes) and the newer "Express" edition environments from Microsoft do not include MFC, e.g. Microsoft Visual C++ 2008 Express. These patches should enable building on more MS platforms. I suggest thorough testing, of course. The affected files: for gtkmm: ../atkmm/atkmm.rc.in ../gdkmm/gdkmm.rc.in ../pangomm/pangomm.rc.in ../gtkmm/gtkmm.rc.in and for glibmm: ../glibmm/glibmm.rc.in Phil Steps to reproduce: 1. Import project into MS Visual C++ 2008 Express 2. 3. Actual results: Unable to locate resource.h Unable to locate afxres.h Expected results: Does this happen every time? yes Other information:
Similarly for cairomm! Phil
This is fixed in the meanwhile for all relevant projects.