ThreadXxx.h:100: error: ‘pthread_t’ was not declared in this scope
清泛原创
pthread_t在头文件/usr/include/bits/pthreadtypes.h中定义:
typedef unsigned long int pthread_t;
它是一个线程的标识符。#include <pthread.h> 解决。
上一篇:sizeof、strlen简单总结
下一篇:C++的内部类