C语言学习中的错误信息的解释.docx
《C语言学习中的错误信息的解释.docx》由会员分享,可在线阅读,更多相关《C语言学习中的错误信息的解释.docx(8页珍藏版)》请在冰豆网上搜索。
C语言学习中的错误信息的解释
1."c"notanargumentinfunctionsum该标识符不是函数的参数
2.arrayboundsmissing]infunctionmain缺少数组界限符"]"
3.Arraysizetoolargeinfunctionmain数组规模太大
4.badfilenameformatinincludedirective在包含指令中的文件名格式不正确.
5.Callofnon-functioninfunctionmain调用未经过定义的函数.
6.cannotmodifyaconstobjectinfunctionmain对常量不能进行修改.
7.characterconstanttoolonginfunctionmain字符常量太大
8.constantexpressionrequiredinfuntionmain数组定义的时候,数组大小要求是常数
poundstatmentmissing}infunctionmain复合语句漏掉符号"{"
10.declarationsyntaxerrorinfunctionmain宣告语法错误
11.expressionsyntaxinfunctionmain表达式语法错误
12.extraparameterincalltosuminfunction调用函数时使用了过多的参数
13.illegaluseoffloatingpointinfunctionmain浮点数的不合法使用
14.illegalpiontersubtractioninfunctionmain不合法的指针相减
15.invalidpointeradditioninfunctionmain无效的指针相加
16.outofmemoryinfunctionmain内存不足
17.statementmissing;infunctionmain语句后面漏掉分号.
警告报错
1."k"isassignedavaluewhichisneverused定义了一个变量,但程序从来没用过
2.possibiyincorrectassignmentinfunctionmain这样的赋值可能不正确
3.suspiciouspointerconversioninfunctionmain可疑的指针转换
4.codehasnoeffectinfuntionmain代码对程序没效果
2006-11-120:
50回复
sage2jp
1位粉丝
2楼
Ambiguousoperatorsneedparentheses:
不明确的运算需要用括号括起
Ambiguoussymbol'xxx':
不明确的符号
Argumentlistsyntaxerror:
参数表语法错误
Arrayboundsmissing:
丢失数组界限符
Arraysizetoolarge:
数组尺寸太大
Badcharacterinparamenters:
参数中有不适当的字符
Badfilenameformatinincludedirective:
包含命令中文件名格式不正确
Badifdefdirectivesynatax:
编译预处理ifdef有语法错
Badundefdirectivesyntax:
编译预处理undef有语法错
Bitfieldtoolarge:
位字段太长
Callofnon-function:
调用未定义的函数
Calltofunctionwithnoprototype:
调用函数时没有函数的说明
Cannotmodifyaconstobject:
不允许修改常量对象
Caseoutsideofswitch:
漏掉了case语句
Casesyntaxerror:
Case语法错误
Codehasnoeffect:
代码不可述不可能执行到
Compoundstatementmissing{:
分程序漏掉"{"
Conflictingtypemodifiers:
不明确的类型说明符
Constantexpressionrequired:
要求常量表达式
Constantoutofrangeincomparison:
在比较中常量超出范围
Conversionmaylosesignificantdigits:
转换时会丢失意义的数字
Conversionofnearpointernotallowed:
不允许转换近指针
Couldnotfindfile'xxx':
找不到XXX文件
Declarationmissing;:
说明缺少";"
Declarationsyntaxerror:
说明中出现语法错误
Defaultoutsideofswitch:
Default出现在switch语句之外
Definedirectiveneedsanidentifier:
定义编译预处理需要标识符
Divisionbyzero:
用零作除数
Dostatementmusthavewhile:
Do-while语句中缺少while部分
Enumsyntaxerror:
枚举类型语法错误
Enumerationconstantsyntaxerror:
枚举常数语法错误
Errordirective:
xxx:
错误的编译预处理命令
Errorwritingoutputfile:
写输出文件错误
Expressionsyntaxerror:
表达式语法错误
Extraparameterincall:
调用时出现多余错误
Filenametoolong:
文件名太长
Functioncallmissing):
函数调用缺少右括号
Fuctiondefinitionoutofplace:
函数定义位置错误
Fuctionshouldreturnavalue:
函数必需返回一个值
Gotostatementmissinglabel:
Goto语句没有标号
Hexadecimaloroctalconstanttoolarge:
16进制或8进制常数太大
Illegalcharacter'x':
非法字符x
Illegalinitialization:
非法的初始化
Illegaloctaldigit:
非法的8进制数字
Illegalpointersubtraction:
非法的指针相减
Illegalstructureoperation:
非法的结构体操作
Illegaluseoffloatingpoint:
非法的浮点运算
Illegaluseofpointer:
指针使用非法
Improperuseofatypedefsymbol:
类型定义符号使用不恰当
In-lineassemblynotallowed:
不允许使用行间汇编
Incompatiblestorageclass:
存储类别不相容
Incompatibletypeconversion:
不相容的类型转换
Incorrectnumberformat:
错误的数据格式
Incorrectuseofdefault
Default使用不当
Invalidindirection无效的间接运算
Invalidpointeraddition指针相加无效
Irreducibleexpressiontree无法执行的表达式运算
Lvaluerequired需要逻辑值0或非0值
Macroargumentsyntaxerror宏参数语法错误
Macroexpansiontoolong宏的扩展以后太长
Mismatchednumberofparametersindefinition定义中参数个数不匹配
Misplacedbreak此处不应出现break语句
Misplacedcontinue此处不应出现continue语句
Misplaceddecimalpoint此处不应出现小数点
Misplacedelifdirective不应编译预处理elif
2006-11-121:
15回复
sage2jp
1位粉丝
3楼
Misplacedelse此处不应出现else
Misplacedelsedirective此处不应出现编译预处理else
Misplacedendifdirective此处不应出现编译预处理endif
Mustbeaddressable必须是可以编址的
Musttakeaddressofmemorylocation必须存储定位的地址
Nodeclarationforfunction'xxx'没有函数xxx的说明
Nostack缺少堆栈
Notypeinformation没有类型信息
Non-portablepointerassignment不可移动的指针(地址常数)赋值
Non-portablepointercomparison不可移动的指针(地址常数)比较
Non-portablepointerconversion不可移动的指针(地址常数)转换
Notavalidexpressionformattype不合法的表达式格式
Notanallowedtype不允许使用的类型
Numericconstanttoolarge数值常太大
Outofmemory内存不够用
Parameter'xxx'isneverused能数xxx没有用到
Pointerrequiredonleftsideof->符号->的左边必须是指针
Possibleuseof'xxx'beforedefinition在定义之前就使用了xxx(警告)
Possiblyincorrectassignment赋值可能不正确
Redeclarationof'xxx'重复定义了xxx
Redefinitionof'xxx'isnotidenticalxx的两次定义不一致
Registerallocationfailure寄存器定址失败
Repeatcountneedsanlvalue重复计数需要逻辑值
Sizeofstructureorarraynotknown结构体或数给大小不确定
Statementmissing;语句后缺少";"
StructureorunionsyntaxerrorX构体或联合体语法错误
Structuresizetoolarge结构体尺寸太大
Subscriptingmissing]下标缺少右方括号
Superfluous&withfunctionorarray函数或数组中有多余的"&"
Suspiciouspointerconversion可疑的指针转换
Symbollimitexceeded符号超限
Toofewparametersincall函数调用时的实参少于函数的参数不
ToomanydefaultcasesDefault太多(switch语句中一个)
Toomanyerrororwarningmessages错误或警告信息太多
Toomanytypeindeclaration说明中类型太多
Toomuchautomemoryinfunction函数用到的局部存储太多
Toomuchglobaldatadefinedinfile文件中全局数据太多
Twoconsecutivedots两个连续的句点
Typemismatchinparameterxxx数xxx类型不匹配
Typemismatchinredeclarationof'xxx'xx重定义的类型不匹配
Unabletocreateoutputfile'xxx'无法建立输出文件xxx
Unabletoopenincludefile'xxx'无法打开被包含的文件xxx
Unabletoopeninputfile'xxx'无法打开输入文件xxx
Undefinedlabel'xxx'没有定义的标号xxx
Undefinedstructure'xxx'没有定义的结构xxx
Undefinedsymbol'xxx'没有定义的符号xxx
Unexpectedendoffileincommentstartedonlinexxx从xxx行开始的注解尚未结束文件不能结束
Unexpectedendoffileinconditionalstartedonlinexxx从xxx开始的条件语句尚未结束文件不能结束
Unknownassembleinstruction未知的汇编结构
Unknownoption未知的操作
Unknownpreprocessordirective:
'xxx'不认识的预处理命令xxx
Unreachablecode无路可达的代码
Unterminatedstringorcharacterconstant字符串缺少引号
Userbreak用户强行中断了程序
VoidfunctionsmaynotreturnavalueVoid类型的函数不应有返回值
Wrongnumberofarguments调用函数的参数数目错
'xxx'notanargumentxxx不是参数
'xxx'notpartofstructurexxx不是结构体的一部分
xxxstatementmissing(xx语句缺少左括号
xxxstatementmissing)xxx语句缺少右括号
xxxstatementmissing;xxx缺少分号
xxx'declaredbutneverused说明了xxx但没有使用
xxx'isassignedavaluewhichisneverused给xxx赋了值但未用过
Zerolengthstructure结构体的长度为零