Trouble compiling examples under GTK+ 1.2.2



Hello,

If this is the wrong forum, I'm sorry I've check the archives, FAQ's and
everything...

The example programs that come with GTK+ 1.2.2 refuse to compile, also
anyother programs using GTK fail to compile. I've compiled GTK and Glib
and installed them w/o any problem. The only reason that I can thing of
for this failing is that I had a previous installation of Gtk 1.0.6. I
didn't remove it so as to not break Gimp and other programs. I installed
1.2.2 w/o removing anything.

Well, my system is Slackware 3.5 and I'm using egcs-2.90.29 980515
(egcs-1.0.3 release)

This is the first few lines that make spits out while trying to compile
helloworld:

gcc `gtk-config --cflags`  helloworld.c -o helloworld `gtk-config --libs`
In file included from /usr/local/include/gtk/gtkmisc.h:32,
                 from /usr/local/include/gtk/gtklabel.h:31,
                 from /usr/local/include/gtk/gtkaccellabel.h:34,
                 from /usr/local/include/gtk/gtk.h:33,
                 from helloworld.c:3:
/usr/local/include/gtk/gtkwidget.h:355: parse error before
`GdkDragContext'
/usr/local/include/gtk/gtkwidget.h:357: parse error before
`GdkDragContext'
/usr/local/include/gtk/gtkwidget.h:359: parse error before
`GdkDragContext'
/usr/local/include/gtk/gtkwidget.h:364: parse error before
`GdkDragContext'
/usr/local/include/gtk/gtkwidget.h:368: parse error before
`GdkDragContext'

Thank you for any help.

Matthew



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