[Anjuta-list] how to include gtk2 headers in source files



Hi to all!
I've a little problem.. how can I specify the gtk2 and libglade headers
in my source files?
If I add the line <gtk/gtk.h> or <glade/glade.h> at the top of a source
file, i get this warnings:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/pango-1.0 -I/usr/in$In file included from
/usr/include/glib-2.0/glib/galloca.h:30,
                 from /usr/include/glib-2.0/glib.h:30,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkcolor.h:4,
                 from /usr/include/gtk-2.0/gdk/gdk.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:31,
                 from alemail_gui.h:4,
                 from alemail_gui.c:1:
/usr/include/glib-2.0/glib/gtypes.h:196:4: warning: suggest not using
#elif in traditional C
/usr/include/glib-2.0/glib/gtypes.h:232:4: warning: suggest not using
#elif in traditional C
/usr/include/glib-2.0/glib/gtypes.h:355:2: warning: suggest not using
#elif in traditional C
/usr/include/glib-2.0/glib/gtypes.h:376:2: warning: suggest hiding
#error from traditional C with an indented #
In file included from /usr/include/glib-2.0/glib.h:30,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkcolor.h:4,
                 from /usr/include/gtk-2.0/gdk/gdk.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:31,
                 from alemail_gui.h:4,
                 from alemail_gui.c:1:

these lines repeats many times..the app compiles and runs.. Could
someone healp me? thanks! :-)

Alessio






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