Re: Gtk+-2.0: First attempt



On Mon, Jul 17, 2006 at 12:03:10PM -0400, Valdis Kletnieks vt edu wrote:
> On Fri, 14 Jul 2006 20:05:19 PDT, "William D. Tallman" said:
> 
> > --------------
> > In file included from /usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:33,
> >                  from /usr/include/gtk-2.0/gdk/gdkcursor.h:5,
> >                  from /usr/include/gtk-2.0/gdk/gdk.h:31,
> >                  from /usr/include/gtk-2.0/gtk/gtk.h:31,
> >                  from gtkhelloworld20.c:1:
> > /usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:170: error: parse
> > error before "G_GNUC_NULL_TERMINATED"
> 
> This critter G_GNUC_NULL_TERMINATED is defined in (at least on my system)
> in /usr/include/glib-2.0/glib/gmacros.h - so apparently it isn't being
> properly #included in the chain starting with gtk/gtk.h.  Does adding
> a '#include <glib.h>' before the '#include <gtk/gtk.h>' fix it?

I have not been following this thread, but anyway...

gtk/gtk.h includes anything it needs itself.  An explicit
inclusion of glib.h won't make a difference.

G_GNUC_NULL_TERMINATED exists since GLib 2.8, and the
installed Gtk+ evidently requires it and was built with at
least this version -- which is however not installed.
Therefore you (the original poster) somehow managed to
install an incompatible mix of library versions.

It is possible you have the right version somewehre too, just
the wrong one is found first.

Yeti


--
Anonyms eat their boogers.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]