Re: Date and ComboBox



Hello all,

I try to compile my apllication witch use GTK+2.0 and now GnomeUI for a GnomeDateEdit

Before the addition of the Gnome Widget , I was using this command

gcc `pkg-config --libs --cflags gtk+-2.0` GTK1.c -o GTK1

and all was ok. Now, I try this ( and many other combination of arguments )

gcc `pkg-config --libs --cflags gtk+-2.0``gnome-config --cflags gnomeui``gnome-config --libs gnomeui` GTK1.c -o GTK1

But it doesn't work ... GCC write that :

--- cut
/usr/include/gtk-2.0/gtk/gtkenums.h:49: erreur: previous definition of ‘GTK_ANCHOR_S’ was here /usr/include/gtk-1.2/gtk/gtkpacker.h:82: erreur: redeclaration of enumerator ‘GTK_ANCHOR_SW’ /usr/include/gtk-2.0/gtk/gtkenums.h:50: erreur: previous definition of ‘GTK_ANCHOR_SW’ was here /usr/include/gtk-1.2/gtk/gtkpacker.h:83: erreur: redeclaration of enumerator ‘GTK_ANCHOR_SE’ /usr/include/gtk-2.0/gtk/gtkenums.h:51: erreur: previous definition of ‘GTK_ANCHOR_SE’ was here /usr/include/gtk-1.2/gtk/gtkpacker.h:84: erreur: redeclaration of enumerator ‘GTK_ANCHOR_W’ /usr/include/gtk-2.0/gtk/gtkenums.h:52: erreur: previous definition of ‘GTK_ANCHOR_W’ was here /usr/include/gtk-1.2/gtk/gtkpacker.h:86: erreur: redeclaration of enumerator ‘GTK_ANCHOR_E’ /usr/include/gtk-2.0/gtk/gtkenums.h:54: erreur: previous definition of ‘GTK_ANCHOR_E’ was
-- cut

Do you know the good compilation line/methode (maybe with a make but i don't know/understand that)

Thank you for your help,

Geoffroy



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