Re: Needed Help with Gtk+ 2.8, Gtkmm 2.8, and .Net 2005
- From: Frank Naumann <fnaumann boerde de>
- To: Murray Cumming <murrayc murrayc com>
- Cc: Allen <allen saucier cas-inc com>, gtkmm-list gnome org
- Subject: Re: Needed Help with Gtk+ 2.8, Gtkmm 2.8, and .Net 2005
- Date: Tue, 25 Jul 2006 18:13:32 +0200 (CEST)
Hello!
This is a DEFINITE BUG. So how, this max function, void max( const
Glib::RefPtr<Coverage>& other) const; MUST already be defined as a
try C macro, as the error states. Therefore there is a conflict
somewhere.
Yes, you are including something that is #defining max, before you are
including the gtkmm header. This is namespace pollution.
You could try
#undef max
before including the gtkmm header.
Yes, I already fighted a lot with such problems. The problem are the
windows header files (windows.h). This header is polluted with lot of
defines, max is only one. It's for sure very ugly and the source of lot of
problems.
I personally ended up to include the windows header at last (after ALL
other headers). Best is for sure to not include the windows.h at all or to
minimize the usage of windows.h. There was also one case I needed to
#undef something.
Regards,
Frank
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]