After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 549525 - gtkmm/glibmm MSVC builds need not require MFC
gtkmm/glibmm MSVC builds need not require MFC
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: build
2.13.x
Other All
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2008-08-27 00:39 UTC by Philip Kovacs
Modified: 2008-10-05 14:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Philip Kovacs 2008-08-27 00:39:44 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:
Comment 1 Philip Kovacs 2008-08-27 01:13:55 UTC
Similarly for cairomm!

Phil
Comment 2 Armin Burgmeier 2008-10-05 14:13:32 UTC
This is fixed in the meanwhile for all relevant projects.