int main()
{
int ret=pthread_create(&tid,NULL,task,(void*)&arg);
if(ret)
{
fprintf(stderr,"success\n");
}
}
[root@localhost testdir]# gcc main.c -o main
main.c: In function `main':
main.c:15: warning: passing arg 3 of `pthread_create' from incompatible pointer
type
/tmp/cc67xs1l.o(.text+0x40): In function `main':
: undefined reference to `pthread_create'
collect2: ld returned 1 exit status