[kaffe] using pthreads with kaffe

Dalibor Topic robilad at kaffe.org
Wed Jan 7 11:13:01 PST 2004


Hi Ram,

kalyan ram wrote:
> Hai
>     I want to start a thread along with kaffe using
> pthread.In thread.c file,I included #include
> <pthread.h> and I wrote a thread routine.But when I do
> make install, error is generated saying
> "pthread_create(....)"..not found.How to make kaffe
> recognize this library? 
> Any help is appreciated.

I assume that you need to link the code with the pthread library. Does 
configure find the pthread library? you need to configure kaffe to use 
pthreads for its threading implementation (--with-threads=unix-pthreads) 
in order for kaffe to do so.

cheers,
dalibor topic





More information about the kaffe mailing list