conflicting types



I am running RH9 and am trying to compile a short
program that uses GnomeCanvasGroup. I understand, from
a book I have, that I should have

#include <gnome.h>

in my program. With this, and running

[root dhcppc3 weather]# gcc -Wall -o gtkWeather
`pkg-config --cflags --libs gtk+-2.0` gtkWeather.c

I get the messages

"gtkWeather.c:3:19: gnome.h: No such file or
directory"

plus many more. I gather that it can't find the
gnome.h file. So I compile with

gcc -Wall -o gtkWeather `pkg-config --cflags --libs
gtk+-2.0` -I/usr/include/gnome-1.0
-I/usr/lib/gnome-libs/include gtkWeather.c

and I get

"In file included from
/usr/include/gnome-1.0/libgnome/libgnome.h:39,
                 from
/usr/include/gnome-1.0/gnome.h:16,
                 from gtkWeather.c:3:
/usr/include/gnome-1.0/libgnome/gnome-util.h:29:
conflicting types for `G_FILE_TEST_EXISTS'
/usr/include/glib-2.0/glib/gfileutils.h:69: previous
declaration of `G_FILE_TEST_EXISTS'
/usr/include/gnome-1.0/libgnome/gnome-util.h:33:
confused by earlier errors, bailing out"

so there appears some conflict with G_FILE_TEST_EXISTS
that is going on. Any ideas how to avoid this
conflict? Do I have conflicting versions of gtk or
gnome or glib installed? Thanks in advance, This
system is pretty much the original RH9 setup, I don't
believe I've messed with anything affecting these
issues.
John Mann

=====
"I'd rather be debugging...." - Anon

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com



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