gtk+ STILL doesn't compile



Hello all,

I saw the recent thread about gtk+ not compiling, as I have been
having the same problems getting gtk+ to compile.  I updated to the
most recent CVS version, and now I get different errors:

make[2]: Leaving directory `/usr/local/src/gnomesrc/gtk+/gtk'
make[2]: Entering directory `/usr/local/src/gnomesrc/gtk+/gtk'
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gtk\" -I.. -I/opt/gnome/lib/glib/include -I/opt/gnome/include  -I/usr/X11R6/include  -g -O2 -DGTK_NO_CHECK_CASTS -Wall -DUSE_XIM -c gtkaccelgroup.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gtk\" -I.. -I/opt/gnome/lib/glib/include -I/opt/gnome/include -I/usr/X11R6/include -g -O2 -DGTK_NO_CHECK_CASTS -Wall -DUSE_XIM -Wp,-MD,.deps/gtkaccelgroup.p -c -fPIC -DPIC gtkaccelgroup.c
In file included from gtkaccelgroup.h:27,
                 from gtkaccelgroup.c:24:
../gtk/gtkobject.h:137: parse error before `GData'
../gtk/gtkobject.h:137: warning: no semicolon at end of struct or union
In file included from gtkaccelgroup.c:27:
gtkwidget.h:165: field `object' has incomplete type

... snip for brevity ...

gtkaccelgroup.c:696: dereferencing pointer to incomplete type
gtkaccelgroup.c:696: dereferencing pointer to incomplete type
make[2]: *** [gtkaccelgroup.lo] Error 1
make[2]: Leaving directory `/usr/local/src/gnomesrc/gtk+/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/gnomesrc/gtk+'
make: *** [all-recursive-am] Error 2

Here is the code fragment from gtkobject.h that the compile seems to
be barfing on (with comments removed).


struct _GtkObject
{
  /* GtkTypeObject related fields: */
  GtkObjectClass *klass;

  guint32 flags;
  

  guint ref_count;
  
  GData *object_data;     <--- Doesn't like this (see above errors)
};

OK, what is wrong with this code?  Any ideas.  Oh, by the way I can't
seem to find the definition of GData.

Thanks in advance.

ben

-- 
   __o        Benjamin White, MD <bewhite@bgsm.edu>
  -\<,        <http://members.aol.com/benmd/home.html>
(_)/(_)       
Public key: finger bewhite@bgsm.edu or see my home page
Key fingerprint = DB0F124D 477EA116 3113F306 DC1D4858



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