How to compile a gtk+(2.0) with threads?



Hello everyone.
I am writing a multi-threaded program which use "glib2.0" and compiling is passed, but when it run to 
g_thread_init(NULL), it make a "segment error" error. Please tell me what's the problem. My linux 
distribution is Redhat 7.2, I used rpm to install glib2, glib2-devel, gtk2, gtk-devel,the pkgconfig version 
is 0.10.0. I used this command to compiled the program: 
gcc `pkg-config --cflags --libs gtk+-2.0 --libs gthread`  mythread.c -o mythread

              liu
              liusemail 163 net
                 2002-03-21


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