我不断试图编译代码,但是出现了错误。错误如下:
我想把一个结构体传给函数
warning: incompatible pointer types passing
'void *(threadData *)' to parameter of type 'void * (*)(void *)'
[-Wincompatible-pointer-types]
pthread_create(&threads[id], NULL, start,&data[id]);
我想把一个结构体传给函数
void * start(threadData* data)
,但我一直被这个问题困扰。你有什么想法吗?