On Mon, Jul 17, 2006 at 06:23:51PM +0200, David Ne?as (Yeti) wrote: > On Mon, Jul 17, 2006 at 12:03:10PM -0400, Valdis.Kletnieks@xxxxxx 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 Adding the #include satisfied the compiler, whatever the case. Apparently glib-2-2.6.3 also includes G_GNU_NULL_TERMINATED? At the advice of another respondant, I did: [wtallman@ansible c_stuff]$ pkg-config --modversion gtk+-2.0 2.6.3 [wtallman@ansible c_stuff]$ pkg-config --modversion glib-2.0 2.6.3 The Slackware package is gtk-2-2.4.3-i486-1. This implies a discrepency in minor version numbers. Now, a major problem seems to be pango. Thus: [wtallman@ansible c_stuff]$ pkg-config --modversion pango 1.4.0 may or may not be the right version for the rest of the libraries. I intend to get the gtk+ source for 2.6.3 and see if it matches the Slackware package. I presume that installing 2.6.3 (in /usr/local) will tell me if it is satisfied with the pango version. Any other suggestions? Thanks, Yeti. Bill Tallman _______________________________________________ gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list