expected identifier before numeric constant linux下C编程使用typedef enum枚举类型时出现 expected identifier before numeric constant 错误,一般情况下是枚举类型中的某个变量已经被#define定义过一次了,此次在项目空间中搜索你枚举类型中的所有变量类型,看看是否被#define过,如果被#define过,就把#define的删除或换个名字。