首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

vc编译出错总是提示error C2653解决办法

2012-02-28 
vc编译出错总是提示error C2653[del][/del]-------------------Configuration: premfcc - Win32 Debug----

vc编译出错总是提示error C2653
[del][/del]-------------------Configuration: premfcc - Win32 Debug--------------------
Compiling...
cmfcc.cpp
e:\最近\中间产品\mfcc\lateremfcc\cmfcc.cpp(4) : error C2653: 'myc' : is not a class or namespace name
e:\最近\中间产品\mfcc\lateremfcc\cmfcc.cpp(7) : warning C4508: 'myc' : function should return a value; 'void' return type assumed
e:\最近\中间产品\mfcc\lateremfcc\cmfcc.cpp(8) : error C2653: 'myc' : is not a class or namespace name
e:\最近\中间产品\mfcc\lateremfcc\cmfcc.cpp(9) : error C2084: function 'int __cdecl myc(void)' already has a body
e:\最近\中间产品\mfcc\lateremfcc\cmfcc.cpp(11) : error C2653: 'myc' : is not a class or namespace name
e:\最近\中间产品\mfcc\lateremfcc\cmfcc.cpp(13) : error C2065: 'm_rate' : undeclared identifier
e:\最近\中间产品\mfcc\lateremfcc\cmfcc.cpp(14) : error C2065: 'm_size' : undeclared identifier
e:\最近\中间产品\mfcc\lateremfcc\cmfcc.cpp(15) : error C2065: 'm_dimen' : undeclared identifier
e:\最近\中间产品\mfcc\lateremfcc\cmfcc.cpp(16) : error C2065: 'm_framel' : undeclared identifier
e:\最近\中间产品\mfcc\lateremfcc\cmfcc.cpp(17) : error C2065: 'm_framelm' : undeclared identifier
e:\最近\中间产品\mfcc\lateremfcc\cmfcc.cpp(18) : error C2065: 'm_fnum' : undeclared identifier
e:\最近\中间产品\mfcc\lateremfcc\cmfcc.cpp(19) : error C2065: 'm_frame' : undeclared identifier
e:\最近\中间产品\mfcc\lateremfcc\cmfcc.cpp(28) : error C2653: 'myc' : is not a class or namespace name
e:\最近\中间产品\mfcc\lateremfcc\cmfcc.cpp(31) : error C2065: 'pi' : undeclared identifier
e:\最近\中间产品\mfcc\lateremfcc\cmfcc.cpp(33) : error C2653: 'myc' : is not a class or namespace name
e:\最近\中间产品\mfcc\lateremfcc\cmfcc.cpp(48) : error C2653: 'myc' : is not a class or namespace name
e:\最近\中间产品\mfcc\lateremfcc\cmfcc.cpp(55) : error C2065: 'fmel' : undeclared identifier
e:\最近\中间产品\mfcc\lateremfcc\cmfcc.cpp(56) : error C2065: 'melf' : undeclared identifier
e:\最近\中间产品\mfcc\lateremfcc\cmfcc.cpp(61) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
e:\最近\中间产品\mfcc\lateremfcc\cmfcc.cpp(70) : error C2653: 'myc' : is not a class or namespace name
e:\最近\中间产品\mfcc\lateremfcc\cmfcc.cpp(71) : error C2373: 'fmel' : redefinition; different type modifiers
e:\最近\中间产品\mfcc\lateremfcc\cmfcc.cpp(74) : error C2653: 'myc' : is not a class or namespace name
e:\最近\中间产品\mfcc\lateremfcc\cmfcc.cpp(75) : error C2373: 'melf' : redefinition; different type modifiers
e:\最近\中间产品\mfcc\lateremfcc\cmfcc.cpp(78) : error C2653: 'myc' : is not a class or namespace name
Error executing cl.exe.

premfcc.exe - 22 error(s), 2 warning(s)
我检查差了数据和变量没有什么错误啊,在一个creat函数中我对所有类的私有变量进行了初始化,怎么还出现这个,还有就是我把类名换了好多次,绝对没有重名,也没有定义成变量,怎么会出错呢?
????


[解决办法]
头文件
[解决办法]
#include "stdafx.h" 要放到cpp里面。

热点排行