linking problem



Greetings all!

Ive installed glib and gtk from source, run ldconfig and so on and I
think everything is installed ok (pertinent data below), yet I'm
getting a few errors when linking and app:

/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'

Assuming that I have everything installed ok and that this is just a
silly user error, which include or library covers these? I've grepped
like crazy in /usr/lib and /usr/include ...

gtk/glib is setup as such:

[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

Is there a file I should be including? I'm trying to build the classic
helloworld.c in section 2.1 of the tutorial. I can build it if I use
the massive Makefile provided with the samples, but I'm trying to make
my own makefile to see what is required for the build. There's just
too much gtk info on the internet to search effectively for this, but
Ill keep trying.

Thanks - JB
 
+---------------------------------
| John Bleichert                       
| syborg stny rr com
| http://vonbek.dhs.org/latest.jpg




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