g_thread_init undefined?

Experimenting with threads.  Yes I read the faq and the example source
doesn't compile at all on both solaris(1.2.3) and linux(1.2.6) I get

/tmp/cc595wkr.o: In function `main':
/tmp/cc595wkr.o(.text+0xc): undefined reference to `g_thread_init'
collect2: ld returned 1 exit status

Compile Command: gcc -o t2 t2.c `gtk-config --cflags` `gtk-config --libs`

#include <glib.h>

int main(int argc,char **argv)

Is there something I am missing I can't seem to figure this out.  On both
systems g_thread_init is defined in glib.h but not in libraries?


Sean Cody (aka NullStream) 
umcodysw@cc.umanitoba.ca (SCHOOL)
null@fuzyscsi.dhs.org     (HOME)

"If God's my witness then God must be blind."
	Garbage - As Heaven Is Wide

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