gtk-- 0.8.4



I have trouble compiling gtk-- 0.8.4 - the compile fails with this:

c++ -DHAVE_CONFIG_H -I. -I. -I../.. -I.. -I/usr/lib/glib/include
-I/usr/X11R6/include -g -O2 -I/usr/lib/glib/include -I/usr/X11R6/include
-c -fPIC -DPIC alignment.cc
In file included from ../gtk--/widget.h:10,
                 from ../gtk--/container.h:6,
                 from ../gtk--/bin.h:7,
                 from ../gtk--/alignment.h:7,
                 from alignment.cc:4:
/usr/include/gtk/gtkwidget.h:161: redefinition of `struct _GtkWidget'
../gtk--sig.h:27: previous definition here
make[3]: *** [alignment.lo] Error 1
make[3]: Leaving directory `/usr/src/gtk---0.8.4/src/gtk--'

This patch should fix it:

diff -uNr gtk---0.8.4.orig/src/gtk--sig.h gtk---0.8.4/src/gtk--sig.h
--- gtk---0.8.4.orig/src/gtk--sig.h     Tue Apr 21 19:52:03 1998
+++ gtk---0.8.4/src/gtk--sig.h  Thu Apr 23 21:19:01 1998
@@ -24,8 +24,8 @@
  */

 #include <gtk/gtksignal.h>
-struct _GtkWidget;
-typedef struct _GtkWidget GtkWidget;
+#include <gtk/gtkwidget.h>
+
 /*
   Some documentation on usage of signals:


-- 
Trond Eivind Glomsrød
teg@pvv.ntnu.no   **  http://s9412a.steinan.ntnu.no/~teg/



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