Re: linking problem

Olaf and Havoc,

Thanks for the info. I am indeed working with gtk-1.2 and I was
unaware that the tutorial code on the gtk web site is for gtk-2.0!
Sorry to eat your bandwidth like that! I don't see gtk-2.0 anywhere
for download so I'll assume it's not released yet.

I'll work through the tutorial that came with the 1.2 source. I'm
trying to port a terminal app to gtk, with the hopes that it may run
on Linux, AIX and probably win32, so I'll stick with gtk-1.2. Or
should I seek out 2.0 ? Can't find it anywhere...

Anyways, thanks for helping me sort this out!


On Sun, Feb 24, 2002 at 01:35:02PM +0100, Olaf Leidinger wrote:
> Am 24.02.2002 01:59:35, schrieb "Johnny B ." <syborg stny rr com>:
> [...]
> >/tmp/ccOr5DPh.o(.text+0x80): undefined reference to `G_CALLBACK'
> >/tmp/ccOr5DPh.o(.text+0x93): undefined reference to `G_OBJECT'
> >/tmp/ccOr5DPh.o(.text+0x9e): undefined reference to `g_signal_connect'
> [...]
> >
> >[johnnyb tasha lib]$ gtk-config --cflags --libs
> >-I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2
> >-I/usr/local/lib/glib/include -I/usr/X11R6/include
> >-L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule
> >-lglib -ldl -lXext -lX11 -lm
> You link against  gtk+-1.2, don't you? But as far as I know the missing things (g_signal_connect, G_OBJECT ans so) are part of gtk+-2.0 (or more exactly glib-2.0). Are 
> you really sure that your installation is correct. This seems like a mixture of gtk+-1.2 and gtk+-2.0.
> Use the -v option when compiling to see exactly what is included and what linked to your application.
> Ciao
> Olaf
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org

| John Bleichert                       
| syborg stny rr com

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