hi what is the G_GNUC_NULL_TERMINATED?



hi~

i m a newbie so i m reading a tutorial

http://gtk.org/tutorial/c58.html

in chapter3 getting started
i saw the code and compiled but i got the error

i m debian etch user.

my libglib2.0-dev version is 2.10.2-1

and libgtk2.0-dev is 2.8.18-1

can u tell me how can i solved it?



code

===================================
#include

int main( int argc,
char *argv[] )
{
GtkWidget *window;

gtk_init (&argc, &argv);

window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_widget_show (window);

gtk_main ();

return 0;
}
===================================

and compiled
======================================
gcc base.c -o base `pkg-config --cflags --libs gtk+-2.0`
======================================

error message.

======================================
In file included from /usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:33,
from /usr/include/gtk-2.0/gdk/gdkpixbuf.h:33,
from /usr/include/gtk-2.0/gdk/gdkcairo.h:24,
from /usr/include/gtk-2.0/gdk/gdk.h:30,
from /usr/include/gtk-2.0/gtk/gtk.h:31,
from base.c:1:
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:169: error: syntax error before 'G_GNUC_NULL_TERMINATED'
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:169: warning: data definition has no type or storage class
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:190: error: syntax error before 'G_GNUC_NULL_TERMINATED'
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:190: warning: data definition has no type or storage class
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:207: error: syntax error before 'G_GNUC_NULL_TERMINATED'
/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h:207: warning: data definition has no type or storage class
In file included from /usr/include/gtk-2.0/gtk/gtk.h:31,
from base.c:1:
/usr/include/gtk-2.0/gdk/gdk.h:69: error: syntax error before '*' token
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 base.c:1:
/usr/include/gtk-2.0/gtk/gtkobject.h:207: error: syntax error before 'G_GNUC_NULL_TERMINATED'
/usr/include/gtk-2.0/gtk/gtkobject.h:207: warning: data definition has no type or storage class
/usr/include/gtk-2.0/gtk/gtkobject.h:210: error: syntax error before 'G_GNUC_NULL_TERMINATED'
/usr/include/gtk-2.0/gtk/gtkobject.h:210: warning: data definition has no type or storage class
In file included 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 base.c:1:
/usr/include/gtk-2.0/gtk/gtkwidget.h:447: error: syntax error before 'G_GNUC_NULL_TERMINATED'
/usr/include/gtk-2.0/gtk/gtkwidget.h:447: warning: data definition has no type or storage class
/usr/include/gtk-2.0/gtk/gtkwidget.h:719: error: syntax error before 'G_GNUC_NULL_TERMINATED'
/usr/include/gtk-2.0/gtk/gtkwidget.h:719: warning: data definition has no type or storage class
In file included 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 base.c:1:
/usr/include/gtk-2.0/gtk/gtkcontainer.h:174: error: syntax error before 'G_GNUC_NULL_TERMINATED'
/usr/include/gtk-2.0/gtk/gtkcontainer.h:174: warning: data definition has no type or storage class
/usr/include/gtk-2.0/gtk/gtkcontainer.h:178: error: syntax error before 'G_GNUC_NULL_TERMINATED'
/usr/include/gtk-2.0/gtk/gtkcontainer.h:178: warning: data definition has no type or storage class
/usr/include/gtk-2.0/gtk/gtkcontainer.h:182: error: syntax error before 'G_GNUC_NULL_TERMINATED'
/usr/include/gtk-2.0/gtk/gtkcontainer.h:182: warning: data definition has no type or storage class
In file included from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:28,
from /usr/include/gtk-2.0/gtk/gtk.h:32,
from base.c:1:
/usr/include/gtk-2.0/gtk/gtkdialog.h:141: error: syntax error before 'G_GNUC_NULL_TERMINATED'
/usr/include/gtk-2.0/gtk/gtkdialog.h:141: warning: data definition has no type or storage class
In file included from /usr/include/gtk-2.0/gtk/gtk.h:32,
from base.c:1:
/usr/include/gtk-2.0/gtk/gtkaboutdialog.h:65: error: syntax error before 'G_GNUC_NULL_TERMINATED'
/usr/include/gtk-2.0/gtk/gtkaboutdialog.h:65: warning: data definition has no type or storage class
In file included from /usr/include/gtk-2.0/gtk/gtkcelllayout.h:26,
from /usr/include/gtk-2.0/gtk/gtk.h:49,
from base.c:1:
/usr/include/gtk-2.0/gtk/gtktreeviewcolumn.h:127: error: syntax error before 'G_GNUC_NULL_TERMINATED'
/usr/include/gtk-2.0/gtk/gtktreeviewcolumn.h:127: warning: data definition has no type or storage class
/usr/include/gtk-2.0/gtk/gtktreeviewcolumn.h:142: error: syntax error before 'G_GNUC_NULL_TERMINATED'
/usr/include/gtk-2.0/gtk/gtktreeviewcolumn.h:142: warning: data definition has no type or storage class
In file included from /usr/include/gtk-2.0/gtk/gtk.h:49,
from base.c:1:
/usr/include/gtk-2.0/gtk/gtkcelllayout.h:83: error: syntax error before 'G_GNUC_NULL_TERMINATED'
/usr/include/gtk-2.0/gtk/gtkcelllayout.h:83: warning: data definition has no type or storage class
In file included from /usr/include/gtk-2.0/gtk/gtkcombobox.h:25,
from /usr/include/gtk-2.0/gtk/gtk.h:65,
from base.c:1:
/usr/include/gtk-2.0/gtk/gtktreeview.h:170: error: syntax error before 'G_GNUC_NULL_TERMINATED'
/usr/include/gtk-2.0/gtk/gtktreeview.h:170: warning: data definition has no type or storage class
In file included from /usr/include/gtk-2.0/gtk/gtk.h:82,
from base.c:1:
/usr/include/gtk-2.0/gtk/gtkfilechooserdialog.h:58: error: syntax error before 'G_GNUC_NULL_TERMINATED'
/usr/include/gtk-2.0/gtk/gtkfilechooserdialog.h:58: warning: data definition has no type or storage class
/usr/include/gtk-2.0/gtk/gtkfilechooserdialog.h:64: error: syntax error before 'G_GNUC_NULL_TERMINATED'
/usr/include/gtk-2.0/gtk/gtkfilechooserdialog.h:64: warning: data definition has no type or storage class
In file included from /usr/include/gtk-2.0/gtk/gtk.h:114,
from base.c:1:
/usr/include/gtk-2.0/gtk/gtkmain.h:99: error: syntax error before 'GOptionEntry'
/usr/include/gtk-2.0/gtk/gtkmain.h:103: error: syntax error before '*' token
/usr/include/gtk-2.0/gtk/gtkmain.h:103: warning: data definition has no type or storage class
In file included from /usr/include/gtk-2.0/gtk/gtk.h:158,
from base.c:1:
/usr/include/gtk-2.0/gtk/gtktextbuffer.h:187: error: syntax error before 'G_GNUC_NULL_TERMINATED'
/usr/include/gtk-2.0/gtk/gtktextbuffer.h:187: warning: data definition has no type or storage class
/usr/include/gtk-2.0/gtk/gtktextbuffer.h:194: error: syntax error before 'G_GNUC_NULL_TERMINATED'
/usr/include/gtk-2.0/gtk/gtktextbuffer.h:194: warning: data definition has no type or storage class

======================================




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