unexpected 'class***或error C2501: missing storage-class or type specifiers 错误解决办法
2013-05-10 16:50
525 查看
Vc error C2629: unexpected 'class***或error C2501: missing storage-class or type specifiers
可能是头文件相互包含
如a.h中有include b.h
b.h中有include a.h
解决方法:把b.h中include a.h去掉,并把该句加入到b.cpp中。即在b的cpp文件中包含a的头文件,而不是在b的头文件中包含。
或者可能是
构造函数的参数类型找不到(没包含相应头文件或者类型名写错了)
相关文章推荐
- error C2501: 'AUX_RGBImageRec' : missing storage-class or type specifiers
- error C2501: '_Application' : missing storage-class or type specifiers
- error C2501: 'GetDocument' : missing storage-class or type specifiers 问题的处理
- 关于dsound.h的问题error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
- error C2501: 'string' : missing storage-class or type specifiers
- missing storage-class or type specifiers的原因及解决办法
- Unable to load class 'org.codehaus.groovy.runtime.typehandling.ShortTypeHandling'错误解决办法
- 'HDEVNOTIFY' : missing storage-class or type specifiers
- Undefined function or method ' ' for input arguments of type 'double' ---错误解决办法
- 'IplImage' : missing storage-class or type specifiers
- '_ConnectionPtr' : missing storage-class or type specifiers
- 解决 C++错误 error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'class CString' (or there is no
- Web开发敏捷之道-应用Rails进行敏捷Web开发-第三版 92页 错误提示 syntax error, unexpected ')' ..._cart" , :id => product } do ).to_s) 解决办法
- warning C4518: '__int64 ' : storage-class or type specifier(s) unexpected here; ignored
- creating bean with name 'dataSource' defined in class path resource错误的解决办法
- Pointer to non-const type 'PLTexture*'with no explicit ownership错误,解决办法
- invalid use of incomplete type 'class-Ui-Widge't的解决办法
- tomcat 5.5 Cannot create JDBC driver of class '' for connect URL 'null' 配置数据源错误解决办法
- 两个C++编译错误及解决办法--does not name a type和field `XX' has incomplete type
- 两个C++编译错误及解决办法--does not name a type和field `XX' has incomplete type