Re: Needed Help with Gtk+ 2.8, Gtkmm 2.8, and .Net 2005



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]