Re: Fw: Prob compiling GTK (gtkmain.c... variable undeclared)



Looking at the very first line of your output (the gcc line) it looks like
the compiler picks up the glib header files from a standard distribution
of glib (i.e. an old version instead of the cvs version). If you're on  
a RedHat system, have you remembered to uninstall glib-devel[...].rpm ?

  Rasmus

On Sat, 31 Oct 1998, Frederic Savard wrote:

> I have glib from the cvs installed.
> 
> Ok, this is what I get:
> 
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gtk\" -I.. -I/usr/lib/glib/include -I/usr/X11R6/include -g -O2 -DGTK_NO_CHECK_CASTS -Wall -DUSE_XIM -Wp,-MD,.deps/gtkmain.p -c -fPIC -DPIC gtkmain.c
> gtkmain.c:85: `G_HOOK_FLAG_USER_SHIFT' undeclared here (not in a function)
> gtkmain.c:86: enumerator value for `GTK_HOOK_MARSHAL' not integer constant
> gtkmain.c:90: parse error before `GHook'
> gtkmain.c:90: warning: no semicolon at end of struct or union
> gtkmain.c:92: parse error before `}'
> gtkmain.c:110: parse error before `*'
> gtkmain.c:192: parse error before `idle_hooks'
> gtkmain.c:192: warning: type defaults to `int' in declaration of `idle_hooks'
> gtkmain.c:192: warning: data definition has no type or storage class
> gtkmain.c:193: parse error before `*'
> gtkmain.c:193: warning: type defaults to `int' in declaration of `last_idle'
> gtkmain.c:193: warning: data definition has no type or storage class
> gtkmain.c: In function `gtk_init':
> gtkmain.c:293: warning: implicit declaration of function `g_strsplit'
> gtkmain.c:293: warning: assignment makes pointer from integer without a cast
> 
> 
> -- 
>          To unsubscribe: mail gnome-list-request@gnome.org with 
>                        "unsubscribe" as the Subject.
> 



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