error: unknown type name '...' 1、未添加头文件; 2、添加了头文件,但该头文件没有添加到工程中; 3、两个头文件中#ifndef~#define~#endif使用的宏相同也会引起此错误;