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"
是怎么回事? 多谢!
======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"
...全文
相关推荐
shengaozhuanhuan.c
12 22 D:\shengaozhuanhuan.cpp [Error] 'foot' was not declared in this scope
faac-1.28.diff
faac报错mpeg4ip_win32.h:70:36: error:'_TRUNCATE' was not declared in this scope ret = vsnprintf_s(buffer, count, _TRUNCATE, format, ap); mpeg4ip_win32.h:70:57: error:'vsnprintf_s' was not declared in this scope ret = vsnprintf_s(buffer, count, _TRUNCATE, format, ap); 可以用这个补丁解决 命令:patch -p1 < faac-1.28.diff
C++与namespace有关的两个编译错误的讲解
今天小编就为大家分享一篇关于C++与namespace有关的两个编译错误的讲解,小编觉得内容挺不错的,现在分享给大家,具有很好的参考价值,需要的朋友一起跟随小编来看看吧
c++出错对照表 英汉对照
c++出错对照表 要的赶快来下吧 常见的错误
GCC安装包(windows版)
源码直接下载地址: https://pan.quark.cn/s/a4b39357ea24 在Windows系统环境中部署的GCC安装软件,内含用户所需的所有库文件。



