嗨,我收到以下警告请帮助我。警告:不兼容的指针类型?
传递“在pthread_create” 的参数3从兼容的指针类型
我的代码是:
int function(int *);
int main()
{
pthread_t thread_a;
pthread_create(&thread_a,NULL, function,&connected);
int function(int *fnd)
{
int bytes_recieved;;
}
“connected”参数是什么类型? – 2010-12-01 06:57:37