双11狂欢大促

盲盒赢 定制羽绒服

开启惊喜盲盒,抽取你的专属好礼

— 惊喜奖品抢先看 —

ERROR: was not declared in this scope

listenxu listenxu 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我在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"
...全文

相关推荐

评论 6
收藏 已收藏
分享
返回顶部
listenxu
C语言 70,039 成员 243,237 内容