|
[root@Center srchftp]# more a.c
#include"unixnet.h"
void * a(void*arg){};
pthread_t pid;
int main()
{
pthread_create(&pid,NULL,a,NULL);
exit(0);
}
[root@Center srchftp]# gcc a.c
/tmp/ccMx8kCI.o(.text+0x24): In function `main':
: undefined reference to `pthread_create'
collect2: ld returned 1 exit status
[root@Center srchftp]#
具体情况就是上面的那个情况,请问大家,怎么处理呀? |
|