|
void *CustomerOperation(void * ignore) 自己定义好的一个线程函数
建立语句如下,
pthread_create(&thread,NULL,CustomerOperation,NULL)
变量都没有问题,pthread.h库也有,包含了pthread.h,可是编译的时候没有问题,但是gcc -o的时候就会提示如下
undefined referance to pthread_create().
collect 2 :ld returned 1 exit status
这是什么原意呢? |
|