Can't compile GTK applications



Hi,

I'm trying to learn GUI programming with GTK. I follow the tutorials at the GTK website. But when I'm trying to compile a get some errors:

gcc test.c `pkg-config --cflags --libs gtk+-2.0`
In file included from /usr/include/gtk-2.0/gtk/gtkwidget.h:32,
                 from /usr/include/gtk-2.0/gtk/gtkcontainer.h:33,
                 from /usr/include/gtk-2.0/gtk/gtkbin.h:32,
                 from /usr/include/gtk-2.0/gtk/gtkwindow.h:33,
                 from /usr/include/gtk-2.0/gtk/gtkdialog.h:32,
                 from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:28,
                 from /usr/include/gtk-2.0/gtk/gtk.h:32,
                 from test.c:2:
/usr/include/gtk-2.0/gtk/gtkobject.h:85: error: expected specifier-qualifier-list before ?GInitiallyUnowned? /usr/include/gtk-2.0/gtk/gtkobject.h:97: error: expected specifier-qualifier-list before ?GInitiallyUnownedClass?

Anybody got an idea of why it doesn't work?

Thanks in advance.




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