C编程错误分析总结.ppt

上传人:xin****828 文档编号:19956999 上传时间:2021-01-18 格式:PPT 页数:15 大小:318.87KB
返回 下载 相关 举报
C编程错误分析总结.ppt_第1页
第1页 / 共15页
C编程错误分析总结.ppt_第2页
第2页 / 共15页
C编程错误分析总结.ppt_第3页
第3页 / 共15页
点击查看更多>>
资源描述
Leilei 1. 保留字 reserved words ; keywords 保留字是 c+系统预定义的、由小写英文字母组成 的单词、词头或词组。 Auto bool break case char class const continue default delete do double else enum extern false float for friend goto inline if int long new operator private protected public register return short signed sizeof static struct switch template this true typedefunion unsigned virtual void volatile 1. Ambiguous operators need parentheses 不明确的运算需要用括号括起 ) |2 M* Z% Z$ x, M I: E 2. Ambiguous symbol xxx 不明确的符号 C5 b! X0 z5 |8 J! v! l5 F4 m 3. Argument list syntax error 参数表语法错误 + w2 t/ B/ H* Z! O0 c4 v 4. Array bounds missing 丢失数组界限符 5. Array size toolarge 数组尺寸太大 6. Bad character in paramenters 参数中有不适当的字符 3 p y# W- B, - w2 Y 7. Bad file name format in include directive 包含命令中文件名格式不正确 2 A- d7 d h; _ / , I9 Y( E5 |( O5 |! : s7 e 8. Bad ifdef directive synatax 编译预处理 ifdef有语法错 , ! R/ F+ ?, 5 H/ D- G 1 5 V- h- F# V0 P9 B0 q8 I 9. Bad undef directive syntax 编译预处理 undef有语法错 10. Bit field too large 位字段太长 ; m/ r4 U- r. b p 11. Call of non-function 调用未定义的函数 8 x* T0 i1 P3 T! L! M; N, I- k n 12. Call to function with no prototype 调用函数时没有函数的说明 % e R) K S; S% * a- a 13. Cannot modify a const object 不允许修改常量对象 # B5 6 S v M/ v$ G5 s: M e% # r4 ; T + J 14. Case outside of switch 漏掉了 case 语句 - L; F* B- r; q K, K5 - n H |6 O l l# 15. Case syntax error Case 语法错误 2 s! j; Y- M + l0 b* p $ J8 u1 V; b2 y6 o 16. Code has no effect 代码不可能执行到 17. Compound statement missing 分程序漏掉 9 8 ) j* ; q ; j e2 p G9 w: P3 18. Conflicting type modifiers 不明确的类型说明符 . S2 C( m7 Z/ 0 $ T$ . t+ n u5 L 19. Constant expression required 要求常量表达式 20. Constant out of range in comparison 在比较中常量超出范围 21. Conversion may lose significant digits 转换时会丢失意义的数字 ) H! B8 Y: t4 g, L8 s 22. Conversion of near pointer not allowed 不允许转换近指针 4 d+ W, R T- A) l( |6 J! p1 ?; ? 23. Could not find file xxx 找不到 XXX文件 5 ; R7 e9 B* H, l# j3 c5 z* 24. Declaration missing ; 说明缺少 ; 0 ?! i6 y- 7 6 u, 25. Declaration syntax error 说明中出现语法错误 2 u+ y c u+ ? 26. Default outside of switch Default 出现在 switch语句之外 4 # O% q# o. H$ x u 27. Define directive needs an identifier 定义编译预处理需要标识符 2 2 # j! L9 n- - U 28. Division by zero 用零作除数 ; u; e T9 r3 I 7 h q1 D U1 q5 s# I+ a b 29. Do statement must have while Do-while语句中缺少 while部分 - . w% * Y X( l4 G + G |0 M- ( t U 30. Enum syntax error 枚举类型语法错误 t9 M/ ?, X, q) t! i z / I4 5 p( t 0 _6 N7 w9 s7 o1 | 31. Enumeration constant syntax error 枚举常数语法错误 - Z+ . y* Z( x1 w+ G8 N: * C 9 c/ t2 c/ K0 v! Y( Q 32. Error directive :xxx 错误的编译预处理命令 * c4 L( T8 c2 B8 X8 33. Error writing output file 写输出文件错误 34. Expression syntax error 表达式语法错误 4 r, D+ s- a6 y 35. Extra parameter in call 调用时出现多余错误 / Z$ r$ M7 e$ 8 M 36. File name too long 文件名太长 a% I0 m r( Q5 ) N 37. Function call missing ) 函数调用缺少右括号 7 n w+ d C! D$ u4 ?* A * r: _2 Y3 S, R: j7 w, A 38. Fuction definition out of place 函数定义位置错误 0 ?) V% . L% h4 A1 B5 L4 E % S, _) m! A! / N8 , h 39. Fuction should return a value 函数必需返回一个值 5 ?, H, . $ I7 I1 m8 40. Goto statement missing label Goto语句没有标号 $ y$ M2 r) G9 n 41. Hexadecimal or octal constant too large 16进制或 8进制常数太大 42. Illegal character x 非法字符 x 8 | Y! L3 I) . L. W 43. Illegal initialization 非法的初始化 44. Illegal octal digit 非法的 8进制数字 0 i$ ? b! x i/ _ 45. Illegal pointer subtraction 非法的指针相减 / O+ c* M1 q( X2 X 2 t, i! b/ N7 f 46. Illegal structure operation 非法的结构体操作 47. Illegal use of floating point 非法的浮点运算 48. Illegal use of pointer 指针使用非法 $ O O% n9 P+ i; S, ( y l 49. Improper use of a typedefsymbol 类型定义符号使用不恰当 + A. m# E* _; P, l 50. In-line assembly not allowed 不允许使用行间汇编 51. Incompatible storage class 存储类别不相容 M+ Q2 j7 W, N o: F6 R, $ + l$ Y; : J s 52. Incompatible type conversion 不相容的类型转换 ) J B9 J7 D ?/ m6 H1 1 j- V2 l8 l 53. Incorrect number format 错误的数据格式 0 o R, B4 J; Q 54. Incorrect use of default Default使用不当 8 k* u5 K0 a4 + u/ y2 % ! R8 m- T0 w: X P 55. Invalid indirection 无效的间接运算 ; Z% L g) Y+ k u/ 2 y 56. Invalid pointer addition 指针相加无效 0 G1 M . L s: P; s 3 b0 b! ! l, S X; x8 o6 | 57. Irreducible expression tree 无法执行的表达式运算 / F8 u4 H0 f6 D c X) v 58. Lvalue required 需要逻辑值 0或非 0值 59. Macro argument syntax error 宏参数语法错误 $ x! c* d9 Y2 n$ u0 F4 K. j4 n! B 60. Macro expansion too long 宏的扩展以后太长 61. Mismatched number of parameters in definition 定义中参数个数不匹配 2 a% J1 0 f* Y- R * B, $ e1 k8 R+ E) K/ G Z 62. Misplaced break 此处不应出现 break语句 ) F$ t; o% k5 J: Z8 |9 m 63. Misplaced continue 此处不应出现 continue语句 ( B$ p2 k* e$ D) X! H) K% K 64. Misplaced decimal point 此处不应出现小数点 65. Misplaced elif directive 不应编译预处理 elif 1 t/ : q: ?( J0 d2 |$ N 66. Misplaced else 此处不应出现 else * 3 N$ l5 J j! I f 67. Misplaced else directive 此处不应出现编译预处理 else 5 S0 F; V! 9 z+ ) D) _ 68. Misplaced endif directive 此处不应出现编译预处理 endif g2 e2 ) % ?0 E+ k! e 4 C4 Q6 v: o9 H 69. Must be addressable 必须是可以编址的 . D0 u O+ f6 ; k; F/ 70. Must take address of memory location 必须存储定位的地址 1 A7 E; Z9 g# h6 I3 S V / C - ( D% t! 71. No declaration for function xxx 没有函数 xxx的说明 6 Y8 A% _! D. C4 G l1 72. No stack 缺少堆栈 $ 9 i+ E# D7 A# x/ X # 1 V7 U X! i: P Z. ) D7 73. No type information 没有类型信息 74. Non-portable pointer assignment 不可移动的指针(地址常数)赋值 $ 5 H, T( I( + ?2 s0 ?2 A 75. Non-portable pointer comparison 不可移动的指针(地址常数)比较 8 d L r6 h5 5 p d2 X+ H; y0 W+ . A ! P a* h2 v. D) N; r 76. Non-portable pointer conversion 不可移动的指针(地址常数)转换 ) N l d# V! O2 m ) h( r$ x% z1 j d 77. Not a valid expression format type 不合法的表达式格式 78. Not an allowed type 不允许使用的类型 x v8 n. $ x 82. Pointer required on left side of - 符号 -的左边必须是指针 . |5 F0 x 3 z H c! 6 K + P7 R: W7 z- B0 p0 _) P 83. Possible use of xxx before definition 在定义之前就使用了 xxx(警告) . / A e3 R- s( y2 v5 , r 84. Possibly incorrect assignment 赋值可能不正确 , x3 R$ H5 7 F0 U ! s 85. Redeclaration of xxx 重复定义了 xxx ) n% f4 d/ l. D7 _ L. l E( w R 86. Redefinition of xxx is not identical xxx的两次定义不一致 4 D, R. Y) ( c( h4 X # o: * m9 S e v, g 87. Register allocation failure 寄存器定址失败 88. Repeat count needs an lvalue 重复计数需要逻辑值 5 F+ X- o- J) U1 L3 G J b3 O* O 6 d7 p6 W0 - F% T Y 89. Size of structure or array not known 结构体或数给大小不确定 90. Statement missing ; 语句后缺少 ; * 4 a2 Q/ g o, N9 Y 91. Structure or union syntax error 结构体或联合体语法错误 4 s# l- U1 q* s. M: a8 Z + Q# G1 N% C( t 92. Structure size too large 结构体尺寸太大 8 J5 U2 : b e$ A; d! U* S+ . R4 O # s/ N* N3 s# d L 93. Sub scripting missing 下标缺少右方括号 F H# _5 p P) H x, K K g( j4 j 0 g a( J8 J + W# Z A 94. Superfluous with function or array 函数或数组中有多余的 I; 95. Suspicious pointer conversion 可疑的指针转换 8 : f b: z+ C 0 % e! N H! 7 Q t2 y/ w 96. Symbol limit exceeded 符号超限 ; t: C5 q% x R L, P 97. Too few parameters in call 函数调用时的实参少于函数的参数不 98. Too many default cases Default太多 (switch语句中一个 ) 99. Too many error or warning messages 错误或警告信息太多 / l( k, 3 Z8 k* V K9 e 100. Too many type in declaration 说明中类型太多 2 f4 Q( 7 t, F6 M0 ! 3 Y 101. Too much auto memory in function 函数用到的局部存储太多 1 _ K2 s S7 z# M- d9 I E2 A- T0 L 102. Too much global data defined in file 文件中全局数据太多 1 r9 * g * e s5 O2 C 103. Two consecutive dots 两个连续的句点 104. Type mismatch in parameter xxx 参数 xxx类型不匹配 _ M/ S9 F t6 u+ w , W- 8 H0 M8 b H# I* ? C 105. Type mismatch in redeclaration of xxx xxx重定义的类型不匹配 Z7 6 f) b5 4 w6 n: t T* q t $ n: r6 Q- H. e# 7 * l* D 106. Unable to create output file xxx 无法建立输出文件 xxx 10. Unable to open include file xxx 无法打开被包含的文件 xxx 108. Unable to open input file xxx 无法打开输入文件 xxx 109. Undefined label xxx 没有定义的标号 xxx ! V0 | h H( I z U9 u; ? 110. Undefined structure xxx 没有定义的结构 xxx 4 I$ Q% W Y |4 Q$ P 111. Undefined symbol xxx 没有定义的符号 xxx Q+ l7 d% 0 P6 ?) A: r S/ 112. Unexpected end of file in comment started on line xxx 从 xxx行开始的注解尚未结束文件不能结束 8 B% , , H- z w# B5 C# h N 113. Unexpected end of file in conditional started on line xxx 从 xxx 开始的条件语句尚未结束文件不能结束 , g8 5 t g. y, |. V; ; | 114. Unknown assemble instruction 未知的汇编结构 ! E, H) |3 m( B8 E u 115. Unknown option 未知的操作 116. Unknown preprocessor directive: xxx 不认识的预处理命令 xxx 117. Unreachable code 无路可达的代码 # U) c. T2 6 L! 7 X w2 n7 k3 O$ h2 v Z 118. Unterminated string or character constant 字符串缺少引号 # T t% N v2 b. | 119. User break 用户强行中断了程序 o- _, U* O, | C- ; / 6 T+ O3 k% S9 L 120. Void functions may not return a value Void类型的函数不应有返回值 7 J9 v* E! 1 N z! Z H 121. Wrong number of arguments 调用函数的参数数目错 % # f0 V9 C F1 Z) W! A; K# V l+ M 122. xxx not an argument xxx不是参数 ( k 2 q7 6 P, A, U; v 123. xxx not part of structure xxx不是结构体的一部分 124. xxx statement missing ( xxx语句缺少左括号 1 A, F* W U* _; p% |3 8 x Q1 6 f$ U* x5 Y 125. xxx statement missing ) xxx语句缺少右括号 9 V; t H7 X S: I* v3 H, m# 126. xxx statement missing ; xxx缺少分号 + N3 n, A, g1 N5 w 127. xxx declared but never used 说明了 xxx但没有使用 $ , N8 Q: f# 5 c y( S* 128. xxx is assigned a value which is never used 给 xxx赋了值但未用过 4 D/ L5 z( D E4 R% z( V$ C0 H 5 L! Z8 A, P# h* + y4 q4 Z3 s. o 129. Zero length structure 结构体的长度为零 TURBOC编译错误信息说明大全 #operator not followed by maco argument name #运算符后没跟宏变元名 Ambiguous operators need parentheses 不明确的运算需要用括号括起 Ambiguous symbol xxx 不明确的符号 Argument # missing name参数 #名丢失 Argument list syntax error 参数表语法错误 Array bounds missing 丢失数组界限符 Array size too large 数组尺寸太大 Assembler statement too long 汇编语句太长 Bad call of in-line function内部函数非法调用 Bad character in paramenters 参数中有不适当的字符 Bad configuration file配置文件不正确 Bad file name format in include directive 包含命令中文件名格式不正确 Bad ifdef directive synatax 编译预处理 ifdef有语法错 Bad ifndef directive syntax编译预处理 ifndef指令语法错误 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 出现在 switch外 Case statement missingCase语句漏掉 Case syntax error Case 语法错误 Character constant too long字符常量太长 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 不允许转换近指针 Could not find file xxx 找不到 XXX文件 Declaration missing ; 说明缺少 ; Declaration needs type or storage class说明必须给出类型或存储 类 Declaration syntax error 说明中出现语法错误 Default outside of switch Default 出现在 switch语句之外 Define directive needs an identifier 编译预处理指令 Define需要标识符 Division by zero 用零作除数 Do statement must have while Do-while语句中缺少 while部分 DO while statement missing ( Do while语句中漏掉了符号 ( Do while statement missing; Do while语句中掉了分号 Duplicate Case Case情况不唯一 Enum syntax error 枚举类型语法错误 Enumeration constant syntax error 枚举常数语法错误 Error directive :xxx 错误的编译预处理命令 Error writing output file 写输出文件错误 Expression syntax error 表达式语法错误 Extra parameter in call 调用时出现多余参数 Extra parameter in call to xxxxxx调用 xxxxxxxx函数时出现了多余参数 File name too long 文件名太长 For statement missing ) For语名缺少 ) For statement missing( For语句缺少 ( For statement missing; For 语句缺少 ; Function call missing ) 函数调用缺少右括号 Fuction definition out of place 函数定义位置错误 Fuction should return a value 函数必需返回一个值 Goto statement missing label Goto语句没有标号 Hexadecimal or octal constant too large 16进制或 8进制常数太大 If statement missing( If语句缺少 ( If statement missing)If语句缺少 ) Illegal character x 非法字符 x Illegal initialization 非法的初始化 Illegal octal digit 非法的 8进制数字 Illegal pointer subtraction 非法的指针相减 Illegal structure operation 非法的结构体操作 Illegal use of floating point 非法的浮点运算 Illegal use of pointer 指针使用非法 Improper use of a typedef symbol 类型定义符号使用不恰当 In-line assembly not allowed 不允许使用行间汇编 Incompatible storage class 存储类别不相容 Incompatible type conversion 不相容的类型转换 Incorrect commadn line argument:xxxxxx 不正确的命令行参数: xxxxxxx Incorrect commadn file argument:xxxxxx 不正确的配置文件参数: xxxxxxx Incorrect number format 错误的数据格式 Incorrect use of default Default使用不当 Initializer syntax error 初始化语法错误 Invalid indirection 无效的间接运算 Invalid macro argument separator 无效的宏参数分隔符 Invalid pointer addition 指针相加无效 Irreducible expression tree 无法执行的表达式运算 Invalid use of dot 点使用错 Lvalue required is assigned a value需要逻辑值 0或非 0值 Macro argument syntax error 宏参数语法错误 Macro expansion too long 宏的扩展太长 Mismatched number of parameters in definition 定义中参数个数不匹配 Misplaced break 此处不应出现 break语句 Misplaced continue 此处不应出现 continue语句 Misplaced decimal point 此处不应出现小数点 xxx Misplaced else 此处不应出现 else Misplaced else directive 此处不应出现编译预处理 else Misplaced endif directive 此处不应出现编译预处理 endif Must be addressable 必须是可以编址的 Must take address of memory location 必须存储定位的地址 No declaration for function xxx 没有函数 xxx的说明 No file name ending 无文件终止符 No file names given 未给出文件名 No stack 缺少堆栈 No type information 没有类型信息 Non-portable pointer assignment 对不可移动的指针(地址常数)赋值 Non-portable pointer comparison 不可移动的指针(地址常数)比较 Non-portable pointer conversion 不可移动的指针(地址常数)转换 Non-protable return type conversion 不可移植的返回类型转换 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 definition 在定义之前就使用了 xxx(警告) Possibly incorrect assignment 赋值可能不正确 Redeclaration of xxx 重复定义了 xxx Redefinition of xxx is not identical xxx的两次定义不一致 Register allocation failure 寄存器定址失败 Repeat count needs an lvalue 重复计数需要逻辑值 Size of structure or array not known 结构体或数组大小不确定 Statement missing ; 语句后缺少 ; Structure or union syntax error 结构体或联合体语法错误 Structure size too large 结构体尺寸太大 Subscripting missing 下标缺少右方括号 Superfluous xxx缺少分号 xxx declared but never used 说明了 xxx但没有使用 xxx is assigned a value which is never used 给 xxx赋了值但未用过 Zero length structure 结构体的长度为零
展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 图纸专区 > 课件教案


copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!