c语言程序调试中错误或警告提示的中文对照_第1页
c语言程序调试中错误或警告提示的中文对照_第2页
c语言程序调试中错误或警告提示的中文对照_第3页
c语言程序调试中错误或警告提示的中文对照_第4页
c语言程序调试中错误或警告提示的中文对照_第5页
已阅读5页,还剩6页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、C 语言错误提示Ambiguous operators need parentheses -不明确的 运算需要用括号括起Ambiguous symbol ''xxx'' -不明确的符 号Argument list syntax error -参数表语 法错误Array bounds missing -丢失数组界限 符Array size toolarge -数组尺寸太大 Bad character in paramenters -参数 中有不适当的字符Bad file name format in include directive -包含命令中文件名格式不正确

2、Bad ifdef directive synatax -编译预 处理 ifdef 有语法错Bad undef directive syntax -编译预 处理 undef 有语法错Bit field too large -位字段太长Call of non-function -调用未定义的函 数Call to function with no prototype -调用函数时没有函数的说明Cannot modify a const object -不允许修 改常量对象Case outside of switch -漏掉了 case 语 句Case syntax error - Case 语法错

3、误 Code has no effect -代码不可述不可能 执行到Compound statement missing -分程 序漏掉 ""Conflicting type modifiers -不明确 的类型说明符Constant expression required -要求常 量表达式Constant out of range in comparison -在 比较中常量超出范围Conversion may lose significant digits -转换 时会丢失意义的数字Conversion of near pointer not allowed -不允许

4、转换近指针Could not find file ''xxx'' -找不到 XXX 文件Declaration missing ; -说明缺少 " ; " Declaration syntax error -说明中出现 语法错误Default outside of switch - Default 出 现在 switch 语句之外Define directive needs an identifier -定义编 译预处理需要标识符Division by zero -用零作除数Do statement must have while - Do-

5、while语 句中缺少 while 部分Enum syntax error -枚举类型语法 错误Enumeration constant syntax error -枚举常数语法错误Error directive :xxx -错误的 编译预处理命令Error writing output file -写输 出文件错误Expression syntax error -表达 式语法错误Extra parameter in call -调用 时出现多余错误File name too long -文件名太长Function call missing -函数调用缺少 右括号Fuction definit

6、ion out of place -函 数定义位置错误Fuction should return a value -函数 必需返回一个值Goto statement missing label - Goto语句没有标号Hexadecimal or octal constant too large -16进 制或 8进制常数太大Illegal character ''x'' -非法字符 x Illegal initialization -非法的初始 化Illegal octal digit -非法的 8进制数 字Illegal pointer subtractio

7、n -非法的 指针相减Illegal structure operation -非法的 结构体操作Illegal use of floating point -非法 的浮点运算Illegal use of pointer -指针使用 非法Improper use of a typedefsymbol -类型 定义符号使用不恰当In-line assembly not allowed -不允许 使用行间汇编Incompatible storage class -存储类别 不相容Incompatible type conversion -不 相容的类型转换Incorrect number form

8、at -错误 的数据格式Incorrect use of default - Default 使用不当Invalid indirection -无效的间接 运算Invalid pointer addition -指针相加 无效Irreducible expression tree -无 法执行的表达式运算Lvalue required -需要逻辑 值 0或非 0值Macro argument syntax error -宏参 数语法错误Macro expansion too long -宏的 扩展以后太长Mismatched number of parameters in definition

9、 -定 义中参数个数不匹配Misplaced break -此处不应出现 break 语句Misplaced continue -此处不应 出现 continue 语句Misplaced decimal point -此处不应 出现小数点Misplaced elif directive -不应编 译预处理 elifMisplaced else -此处不应出现 elseMisplaced else directive -此处不应 出现编译预处理 elseMisplaced endif directive -此处不应 出现编译预处理 endifMust be addressable -必须是可以

10、编址的Must take address of memory location -必须存储定位的地址No declaration for function ''xxx'' -没有函数 xxx 的说明No stack -缺少堆栈No type information -没有类型信息 Non-portable pointer assignment -不可移动的指 针(地址常数赋值Non-portable pointer comparison -不可移动的指 针(地址常数比较Non-portable pointer conversion -不可移动的指 针(地址常数转

11、换Not a valid expression format type -不合法的表达式格式Not an allowed type -不允许使用 的类型Numeric constant too large -数值常 太大Out of memory -内存不够用 Parameter ''xxx'' is never used -能 数 xxx 没有用到Pointer required on left side of -> -符号->的左边必须是指针Possible use of ''xxx'' before defini

12、tion -在定义之前就使用了 xxx (警告Possibly incorrect assignment -赋值可 能不正确Redeclaration of ''xxx'' -重复定义 了 xxxRedefinition of ''xxx'' is not identical - xxx的两次定义不一致Register allocation failure -寄存器 定址失败Repeat count needs an lvalue -重复 计数需要逻辑值Size of structure or array not known -结

13、构 体或数给大小不确定Statement missing ; -语句后缺少 " ; " Structure or union syntax error -结构体 或联合体语法错误Structure size too large -结构体尺寸 太大Sub scripting missing -下标缺少右方 括号Superfluous & with function or array -函数 或数组中有多余的 "&"Suspicious pointer conversion -可疑的指针转换Symbol limit exceeded -符号超

14、限Too few parameters in call -函数调用时的实 参少于函数的参数不Too many default cases - Default太多 (switch语句中一个 Too many error or warning messages -错误或警告信息太多Too many type in declaration -说明中 类型太多Too much auto memory in function -函数 用到的局部存储太多Too much global data defined in file -文件中全局数据太多Two consecutive dots -两个连续的句点

15、Type mismatch in parameter xxx -参数 xxx 类型不匹配Type mismatch in redeclaration of ''xxx'' - xxx重定义的类型不匹配Unable to create output file ''xxx'' -无法建立输出文件 xxxUnable to open include file ''xxx'' -无法 打开被包含的文件 xxxUnable to open input file ''xxx''

16、-无 法打开输入文件 xxxUndefined label ''xxx'' -没有定义 的标号 xxxUndefined structure ''xxx'' -没有定 义的结构 xxxUndefined symbol ''xxx'' -没有定义的 符号 xxxUnexpected end of file in comment started on line xxx:从 xxx 行开始的注解尚未结束文件不能结束Unexpected end of file in conditional started

17、on line xxx :从 xxx 开始的条件语句尚未结束文件不能结束 Unknown assemble instruction -未知的 汇编结构Unknown option -未知的操作Unknown preprocessor directive: ''xxx'' -不 认识的预处理命令 xxxUnreachable code -无路可达的代码Unterminated string or character constant-字符串缺少引号User break -用户强行中断了程序Void functions may not return a value

18、- Void类型 的函数不应有返回值Wrong number of arguments -调用函数 的参数数目错''xxx'' not an argument - xxx不是参 数''xxx'' not part of structure - xxx不是结构体的一部分xxx statement missing ( - xxx语句 缺少左括号xxx statement missing - xxx语句缺 少右括号xxx statement missing ; - xxx缺少 分号xxx'' declared but n

19、ever used -说 明了 xxx 但没有使用xxx'' is assigned a value which is never used -给 xxx 赋了值但未用过Zero length structure -结构体的长度为零警告类错误1XXXdeclare but never used变量 XXX 已定义但 从未用过。2XXXis assigned a value which is never used变 量 XXX 已赋值但从未用过。3 Code has no effect 程序中含有没有实际作用的代 码。4 Non-portable pointer conversi

20、on 不适当的指针转 换,可能是在应该使用指针的地方用了一个非 0的数值。 5 Possible use of XXXbefore definition表达 式中使用了未赋值的变量6 Redeclaration of main 一个程序文件中主函 数 main 不止一个。7 Suspicious pointer conversion 可疑的指针转换。 通常是使用了基本类型不匹配的指针。8 Unreachable code 程序含有不能执行到的代码。 错误或致命错误9 Compound statement missing in function main 程 序结尾缺少括号 。10 “”expe

21、cted;“(”expected 等 复合语句或数组 初始化的结尾缺少“”;“(”。12 Case outside of switch case 不属于 Switch 结构, 多由于 switch 结构中的花括号不配对所致。13 Case statement missing : switch结构中的某 个 case 之后缺少冒号。14 Constant expression required 定义数组时指定的 数组长度不是常量表达式。15 Declaration syntax error 结构体或联合类型的定义 后缺少分号。16 Declaration was expected 缺少说明,通常

22、是因为 缺少分界符如逗号、分号、右圆 括号等所引起的。 17 Default outside switch Default部分放到了 switch 结构之外,一般是因为花括号不匹配而引起的。18 do statement must have while do语句中缺少相 应的 while 部分。19 Expression syntax 表达式语法错。如表达式中含有 两个连续的运算符20 Extra parameter in call fun 调用函数 fun 时 给出了多余的实参。21 Function should return a value 函数应该返回一 个值,否则与定义时的说明类型不

23、匹配。22 Illegal use of pointer 指针被非法引用,一般是使用了非法的指针运算。23 Invalid pointer addition 指针相加非法。一个指 针(地址可以和一个整数相加,但两个指针不能相加。 24 Lvalue required 赋值运算的左边是不能寻址的表 达式。25 Misplaced else 程序遇到了没有配对的 else 26 No matching 表达式中的括号不配对。27 Pointer required on left side of_> 在“_>”运 算的左边只能允许一个指针而不能是一个一般的结构体变 量或联合类型的变量。2

24、8 Statement missing; 程序遇到了后面没有分号的语 句。29 Too few parameters in call 调用某个函数时实参 数目不够。30 Unable to open include file XXXXXXXX.XXX 头 文件找不到。31 Unexpected 或 :或 在不希望的地方使用了 或:。 32 Undefined symbol Xin function fun 函数 fun 中 的变量 X 没有定义。连接中的常见错误主要错误类似于“undefined symbol _print in modula xxx”(print没有定义 ,通常是函数名书写错

25、误。运行中的常见错误Abnormal program termination 程序异常终止。通常是 由于内存使用不当所致。Floating point error : Domain 或 Divide by 0 运算结 果不是一个数或被 0 除Null pointer assignment 对未初始化的指针赋值,程 序有严重错误。User break 在运行程序时终止。1."c" not an argument in function sum 该标识符不是函 数的参数2.array bounds missing in function main 缺少数组界 限符 ""3.Array size too large in function main 数组规模太大4.bad file name format in include directive 在包含指 令中的文件名格式不正确 .5.Call of non-function in function main 调用未经过定 义的函数 .6.cannot modify a const object in function main 对常 量不能

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论