Try -lgthread as link option in my application this works Best Regards Günther kadil schrieb:
I have written an application that queries an odbc database on a timeout, while the query is being executed, everything else stops (understandably). I would like to use threads, but I have no experience with threads. I read the gtk+2 tutorial, and studied the example, copied the example into a file and tried to compile. It failed dismally. I have a stock standard linux mandrake 9.1 with gtk2 dev libs. I can use anjuta/glade to develop a gtk+2 gui on my system, so I do not think that I am missing any libraries. my compile cammand: gcc -o gtk-thread gtk-thread.c `gtk-config --cflags --libs gthread` gcc response: /tmp/ccpVImeH.o(.text+0x17f): In function `main': : undefined reference to `gdk_threads_init' collect2: ld returned 1 exit status Please help. Regards, Kim _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list gnome org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
-- R=I+S Rapp Informatik Systeme GmbH Rosenbühlstr. 24 D-89182 Bernstadt Tel: +49 (0)7348-7755 Fax: +49 (0)7348-6086 E-MAIL mailto: guenther rapp-informatik de WEB www.rapp-informatik.de PS: Senden Sie mir bitte keine Anhänge in Microsoft (.DOC, .PPT) Format Bitte lesen Sie http://www.fsf.org/philosophy/no-word-attachmentsi.de.html Please don't send me any attachment in Microsoft (.DOC, .PPT) format please Read http://www.fsf.org/philosophy/no-word-attachments.html
Attachment:
guenther.vcf
Description: Visitenkarte für Günther Rapp