error: expected class-name befor…
来源:互联网 发布:2015淘宝年销售额 编辑:程序博客网 时间:2024/06/07 02:44
可能的原因有两个:
1.头文件的宏定义是一样的,多个文件的下面AA是一样的
#ifndef AA
#define AA
....
#endif
2.继承的基类的头文件没有包含进来
错误的原因是,该类继承的那个基类的头文件没有包含进来,
You can get the error
expected class-name before ‘{’ token
if you try to define a class as a subclass, and the superclassisn't defined in the local scope.
WRONG
class Foo: public Bar // Foo is a subclass of Bar
{
// stuff
};
RIGHT
#include "Bar.h" // this makes Bar recognized
class Foo: public Bar
{
// stuff
};
0 0
- error: expected class-name befor…
- error: invalid storage class for…
- expected unqualified-…
- PHP提示 Fatal error: Class 'DOMD…
- LDAP: error code …
- g++ error : decla…
- linux : error whi…
- Error page: / Err…
- ERROR 23 (HY000) …
- Error: ORA-1505…
- MSCSLD : Error in…
- Error 000464 : 无…
- linux ERROR 1045 …
- 关于error inflating class
- Application windows are expected…
- ORA-02778 : Name given for the l…
- error C3646: unknown override sp…
- error C2065: 'priority_queue' : …
- Qt 编译过程,出现的问题和解决方…
- 应用程序将原有的CPU x86更改为AnyCPU导致奇妙的问题
- cp 命令 提示cp: 略过目录
- ubuntu 关机时卡死的解决方法
- virgoTomcatServer greenpages>>contracthttp://spring.io/
- error: expected class-name befor…
- MySQL 登录
- 刚安装了MySQL发现有个用户debian-…
- 如何查看MySQL的当前存储引擎?
- hive学习笔记
- openjudge 树的镜面映射
- mysql 登录出现提示:ERROR 1045 (…
- mysql 中int和integer有什么区别
- 执行linux下c程序时找不到my…