Re: linking problem
- From: Olaf Leidinger <leidola newcon de>
- To: "Johnny B ." <syborg stny rr com>
- Cc: gtk-list gnome org
- Subject: Re: linking problem
- Date: Sun, 24 Feb 2002 13:35:02 +0100
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]