error: expected identifier before numeric constant错误。
原因:定义的enum结构体与其它处的宏定义有冲突。
比如
a.h中:
....
#define TRUE 1
.....
b.h中:
.....
typedef enum
{
FALSE=0,
TRUE=1
}bool;
.....
x.c中:
#include "a.h"
#include "b.h"
.....
编译x.c文件会出现上述错误