Re: [gtk-list] Itemfactory example won't compile ?!?!
- From: Brian Masney <masneyb ns newwave net>
- To: "David J. Topper" <topper virginia edu>
- cc: gtk-list redhat com, jric bu edu, recipient list not shown: ;
- Subject: Re: [gtk-list] Itemfactory example won't compile ?!?!
- Date: Wed, 9 Jun 1999 13:33:28 -0400 (EDT)
Remove or rename /usr/X11R6/include/glib.h and that will fix it. This is
from gtk/glib 1.0
Brian
On Wed, 9 Jun 1999, David J. Topper wrote:
> Joshua Richardson wrote:
> >
> > It sounds like you've got a typo in your source code. Why don't you post
> > it or mail it to me, and I can take a look.
>
> Hey Josh,
>
> Actually, I get the same error when trying to compile the
> ./gtk/examples/menu/itemfactory.c:
>
> $make itemfactory
> gcc `gtk-config --cflags` itemfactory.c -o itemfactory `gtk-config
> --libs`
> In file included from /usr/X11R6/include/gdk/gdktypes.h:25,
> from /usr/X11R6/include/gdk/gdk.h:23,
> from /usr/X11R6/include/gtk/gtk.h:23,
> from itemfactory.c:3:
> /usr/X11R6/include/glib.h:365: warning: `GPOINTER_TO_INT' redefined
> /usr/local/lib/glib/include/glibconfig.h:48: warning: this is the
> location of th
> e previous definition
> ...
> itemfactory.c:46: warning: data definition has no type or storage class
> itemfactory.c: In function `get_main_menu':
> itemfactory.c:51: `GtkItemFactory' undeclared (first use this function)
> itemfactory.c:51: (Each undeclared identifier is reported only once
> itemfactory.c:51: for each function it appears in.)
> itemfactory.c:51: `item_factory' undeclared (first use this function)
> itemfactory.c:52: `GtkAccelGroup' undeclared (first use this function)
> itemfactory.c:52: `accel_group' undeclared (first use this function)
> itemfactory.c:64: `GTK_TYPE_MENU_BAR' undeclared (first use this
> function)
> itemfactory.c:77: warning: assignment makes pointer from integer without
> a cast
>
>
> So I'm still SOL here.
>
> Any input would be appreciated.
>
> Thanks,
>
> DT
> --
> Technical Director, Virginia Center for Computer Music
> Programmer / Analyst, Dean's Office (School of A&S)
> http://www.people.virginia.edu/~djt7p
> (804) 924-6887
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]