Add this option to your gcc or linker line:
-lpthread
Also, add this in the top of your C code before you start including headers:
#define _REENTRANT
Look in /usr/doc/glibc-xxxxxx and you will find a file detailing the
pthread support under Linux.
On Wed, Oct 06, 1999 at 10:50:02PM +0800, [EMAIL PROTECTED] wrote:
>
>
>
> Dear friends,
> I'm trying to port a program from WINDOWS to Linux,
> and I'm trying to use pthread_create(). There is no error
> or warning message when compiling those files( i.e. gcc -c ...),
> but there is a linking error: undefined reference to function
> pthread_create().
> I'm using RedHat 5.1.
> please help me !
>
>
> --
> To unsubscribe:
> mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
>
--
To unsubscribe:
mail -s unsubscribe [EMAIL PROTECTED] < /dev/null