ERROR: was not declared in this scope
我在A.h中声明了一个枚举类型;然后在B.h的函数参数中使用了这个枚举类型。编译器报错“A_enum was not declared in this scope”
是怎么回事? 多谢!
======A.h=========
A.h
typedef enum A_enum
{
a_1,
a_2,
a_3
}A_enum;
===================
======B.h==========
B.h
extern void B_FUN(A_enum a);
=================
=> complier report "A_enum was not declared in this scope"