清泛IT社区

标题: ThreadXxx.h:100: error: ‘pthread_t’ was not declared in this scope [打印本页]

作者: 清泛网    时间: 2015-10-16 15:46
标题: ThreadXxx.h:100: error: ‘pthread_t’ was not declared in this scope
pthread_t在头文件/usr/include/bits/pthreadtypes.h中定义:
  1. typedef unsigned long int pthread_t;
复制代码
它是一个线程的标识符。

#include <pthread.h>   解决。





欢迎光临 清泛IT社区 (https://bbs.tsingfun.com/) Powered by Discuz! X3.3