[Threads-list] mixing threads classes & pthread
Brought to you by:
hanseno
From: Christof D. <cd...@gu...> - 2001-10-26 17:48:11
|
Hi, i just started using the threads classes (used my own class before), but i now have a problem. i have to link to pthreads too, because gtk++ needs it (and some of my functions need it it too). but whenever you link a threads-programm to libpthread it stops working. you can reproduce that with one of the examples: > g++ -O2 -Wall -s -o consumer consumer.o ../threads/libthreads.a > echo test | ./consumer Enter text for consumer: got 'test' Consumed: 'test' return value 0 > g++ -O2 -Wall -s -o consumer consumer.o ../threads/libthreads.a -lpthread > echo test | ./consumer [hangs until ctrl-c] is there a way to make this work ? thanks, damian -- Christof Damian Technical Director, guideguide ltd. |