在学习pthread的时候碰到了以下问题
这是代码:
#include<stdio.h>
#include<pthread.h>
void callback() {
printf("子线程");
}
int main() {
pthread_t thread;
pthread_create(&thread, NULL, (void*)callback, NULL);
printf("主线程");
return 0;
}
我是在这里下载的pthread
然后就出现了这个
这个重定义我也按照CSDN上几种方法试着解决了但还是没什么用