pthread_create error
hello,
I have a problem when I practice c program of "pthread_create",
CODE AS:
pthread_create(&thread1,NULL,count_number,(void *)&args1);
my platform is redhat 9.0 and the error message as below:
/tmp/ccEMK4XC.o(.text+0x21): In function `main':
: undefined reference to `pthread_create'
/tmp/ccEMK4XC.o(.text+0x39): In function `main':
: undefined reference to `pthread_create'
/tmp/ccEMK4XC.o(.text+0x49): In function `main':
: undefined reference to `pthread_join'
/tmp/ccEMK4XC.o(.text+0x59): In function `main':
: undefined reference to `pthread_join'
collect2: ld returned 1 exit status
what's this mean?
thanks.
|