I have found the solution already. It was an easy one though.

--- Original Message ---

Hi all,

I have written some multithreading code using pthread library. But when I
compile the code, the compiling process is ok but the linking process claims
"undefined reference" for pthread_create( ). How can I resolve this problem?
I have included <pthread.h> and #define _REENTRANT but still doesn't work. I
suspect the library libpthread.so is bad but having replaced that file with
another one from Mandrake 8.0 (the file sizes are different), it
still doesn't compile. Can anyone help me with this one? Thanks.

Best Regards,
David

PS: BTW, I am using RedHat 7.1 with glibc-devel installed.



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to