【发布时间】:2010-12-01 06:53:19
【问题描述】:
您好,我收到以下警告,请帮助我。
传递“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参数是什么类型的?