C编程错误分析总结.ppt

上传人:max****ui 文档编号:14145400 上传时间:2020-07-08 格式:PPT 页数:15 大小:318.81KB
收藏 版权申诉 举报 下载
C编程错误分析总结.ppt_第1页
第1页 / 共15页
C编程错误分析总结.ppt_第2页
第2页 / 共15页
C编程错误分析总结.ppt_第3页
第3页 / 共15页
资源描述:

《C编程错误分析总结.ppt》由会员分享,可在线阅读,更多相关《C编程错误分析总结.ppt(15页珍藏版)》请在装配图网上搜索。

1、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 swit

2、ch template this true typedefunion unsigned virtual void volatile,1. Ambiguous operators need parentheses 不明确的运算需要用括号括起 ) |2 M* Z% Z$ x, M I: E2. Ambiguous symbol xxx 不明确的符号 C5 b! X0 z5 |8 J! v! l5 F4 m3. Argument list syntax error 参数表语法错误 + w2 t/ B/ H* Z! O0 c4 v4. Array bounds missing 丢失数组界限符5. Ar

3、ray size toolarge 数组尺寸太大6. Bad character in paramenters 参数中有不适当的字符 3 py# W- B, - w2 Y7. Bad file name format in include directive 包含命令中文件名格式不正确 2 A- d7 d h; _/ , I9 Y( E5 |( O5 |! : s7 e8. Bad ifdef directive synatax 编译预处理ifdef有语法错 , ! R/ F+ ?, 5 H/ D- G1 5 V- h- F# V0 P9 B0 q8 I9. Bad undef directi

4、ve syntax 编译预处理undef有语法错 10. Bit field too large 位字段太长 ; m/ r4 U- r. b p11. Call of non-function 调用未定义的函数 8 x* T0 i1 P3 T! L! M; N, I- k n12. Call to function with no prototype 调用函数时没有函数的说明 % e R) K S; S% * a- a13. Cannot modify a const object 不允许修改常量对象 # B5 6 S v M/ v$ G5 s: Me% # r4 ; T + J14. Cas

5、e outside of switch 漏掉了case 语句 - L; F* B- r; q K, K5 - n H e T9 r3 I,7 h q1 D U1 q5 s# I+ a b29. Do statement must have while Do-while语句中缺少while部分 - . w% * Y X( l4 G+ G |0 M- ( tU30. 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 枚

6、举常数语法错误- Z+ . y* Z( x1 w+ G8 N: * C9 c/ t2 c/ K0 v! Y( Q32. Error directive :xxx 错误的编译预处理命令 * c4 L( T8 c2 B8 X8 33. Error writing output file 写输出文件错误 34. Expression syntax error 表达式语法错误 4 r, D+ s- a6 y35. Extra parameter in call 调用时出现多余错误 / Z$ r$ M7 e$ 8 M36. File name too long 文件名太长 a% I0 m r( Q5 )

7、 N37. Function call missing ) 函数调用缺少右括号 7 nw+ d C! D$ u4 ?* A* r: _2 Y3 S, R: j7 w, A38. Fuction definition out of place 函数定义位置错误 0 ?) V% . L% h4 A1 B5 L4 E% S, _) m! A! / N8 , h39. Fuction should return a value 函数必需返回一个值 5 ?, H, . $ I7 I1 m8 40. Goto statement missing label Goto语句没有标号 $ y$ M2 r) G9

8、 n41. Hexadecimal or octal constant too large 16进制或8进制常数太大42. Illegal character x 非法字符x 8 | Y! L3 I) . L. W43. Illegal initialization 非法的初始化 44. Illegal octal digit 非法的8进制数字 0 i$ ? b! x i/ _45. Illegal pointer subtraction 非法的指针相减 / O+ c* M1 q( X2 X2 t, i! b/ N7 f46. Illegal structure operation 非法的结构

9、体操作 47. Illegal use of floating point 非法的浮点运算 48. Illegal use of pointer 指针使用非法 $ O O% n9 P+ i; S, ( y l49. Improper use of a typedefsymbol 类型定义符号使用不恰当+ A. m# E* _; P, l50. In-line assembly not allowed 不允许使用行间汇编 51. Incompatible storage class 存储类别不相容 M+ Q2 j7 W, N o: F6 R, $ + l$ Y; : J s52. Incompa

10、tible type conversion 不相容的类型转换 ) J B9 J7 D ?/ m6 H1 1 j- V2 l8 l,53. Incorrect number format 错误的数据格式 0 o R, B4 J; Q54. Incorrect use of default Default使用不当 8 k* u5 K0 a4 + u/ y2 % ! R8 m- T0 w: X P55. Invalid indirection 无效的间接运算 ; Z% Lg) Y+ k u/ 2 y56. Invalid pointer addition 指针相加无效 0 G1 M . L s: P

11、; s3 b0 b! ! l, S X; x8 o6 |57. Irreducible expression tree 无法执行的表达式运算 / F8 u4 H0 f6 D cX) v58. Lvalue required 需要逻辑值0或非0值 59. Macro argument syntax error 宏参数语法错误 $ x! c* d9 Y2 n$ u0 F4 K. j4 n! B60. Macro expansion too long 宏的扩展以后太长 61. Mismatched number of parameters in definition 定义中参数个数不匹配2 a% J

12、1 0 f* Y- R* B, $ e1 k8 R+ E) K/ GZ62. Misplaced break 此处不应出现break语句 ) F$ t; o% k5 J: Z8 |9 m63. Misplaced continue 此处不应出现continue语句 ( B$ p2 k* e$ D) X! H) K% K64. Misplaced decimal point 此处不应出现小数点 65. Misplaced elif directive 不应编译预处理elif 1 t/ : q: ?( J0 d2 |$ N66. Misplaced else 此处不应出现else * 3 N$ l

13、5 J j! I f67. Misplaced else directive 此处不应出现编译预处理else5 S0 F; V! 9 z+ ) D) _68. Misplaced endif directive 此处不应出现编译预处理endif g2 e2 ) % ?0 E+ k! e4 C4 Q6 v: o9 H69. 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! 7

14、1. 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 UX! i: P Z. ) D7 73. No type information 没有类型信息74. Non-portable pointer assignment 不可移动的指针(地址常数)赋值$ 5 H, T( I( + ?2 s0 ?2 A75. Non-portable pointer comparison 不可移动的指针(地址常数)比较 8 d L r6 h5

15、5 pd2 X+ H; y0 W+ . A! P a* h2 v. D) N; r76. Non-portable pointer conversion 不可移动的指针(地址常数)转换 ) N ld# V! O2 m) h( r$ x% z1 j d77. Not a valid expression format type 不合法的表达式格式 78. Not an allowed type 不允许使用的类型 x v8 n. $ x82. Pointer required on left side of - 符号-的左边必须是指针. |5 F0 x 3 z H c! 6 K+ P7 R: W7

16、 z- B0 p0 _) P83. Possible use of xxx before definition 在定义之前就使用了xxx(警告) . / A e3 R- s( y2 v5 , r84. Possibly incorrect assignment 赋值可能不正确 , x3 R$ H5 7 F0 U ! s85. Redeclaration of xxx 重复定义了xxx ) n% f4 d/ l. D7 _ L. l E( wR86. Redefinition of xxx is not identical xxx的两次定义不一致4 D, R. Y) ( c( h4 X# o:

17、* m9 S e v, g87. Register allocation failure 寄存器定址失败 88. Repeat count needs an lvalue 重复计数需要逻辑值 5 F+ X- o- J) U1 L3 G J b3 O* O6 d7 p6 W0 - F% T Y89. Size of structure or array not known 结构体或数给大小不确定 90. Statement missing ; 语句后缺少; * 4 a2 Q/ g o, N9 Y91. Structure or union syntax error 结构体或联合体语法错误4 s#

18、 l- U1 q* s. M: a8 Z+ Q# G1 N% C( t92. Structure size too large 结构体尺寸太大 8 J5 U2 : b e$ A; d! U* S+ . R4 O# s/ N* N3 s# d L93. Sub scripting missing 下标缺少右方括号 F H# _5 p P) H x, KK g( j4 j0 ga( J8 J+ W# ZA94. Superfluous with function or array 函数或数组中有多余的 t: C5 q% x R L, P97. Too few parameters in call

19、函数调用时的实参少于函数的参数不98. Too many default cases Default太多(switch语句中一个) 99. Too many error or warning messages 错误或警告信息太多 / l( k, 3 Z8 k* VK9 e100. Too many type in declaration 说明中类型太多 2 f4 Q( 7 t, F6 M0 ! 3 Y101. Too much auto memory in function 函数用到的局部存储太多 1 _ K2 s S7 z# M- d9 IE2 A- T0 L102. Too much gl

20、obal data defined in file 文件中全局数据太多 1 r9 * g* e s5 O2 C103. Two consecutive dots 两个连续的句点 104. Type mismatch in parameter xxx 参数xxx类型不匹配 _M/ S9 F t6 u+ w, W- 8 H0 M8 bH# I* ?C,105. Type mismatch in redeclaration of xxx xxx重定义的类型不匹配 Z7 6 f) b5 4 w6 n: tT* qt$ n: r6 Q- H. e# 7 * l* D106. Unable to crea

21、te 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( Iz U9 u; ?110. Undefined structure xxx 没有定义的结构xxx 4 I$ Q% W Y|4 Q$ P111. Undefined symbol xxx 没有定义的符号xxx Q+ l7 d% 0 P6 ?) A:

22、 r S/ 112. Unexpected end of file in comment started on line xxx 从xxx行开始的注解尚未结束文件不能结束8 B% , , H- z w# B5 C# hN113. Unexpected end of file in conditional started on line xxx 从xxx 开始的条件语句尚未结束文件不能结束 , g8 5 tg. y, |. V; ; |114. Unknown assemble instruction 未知的汇编结构 ! E, H) |3 m( B8 E u115. Unknown option

23、 未知的操作 116. Unknown preprocessor directive: xxx 不认识的预处理命令xxx117. Unreachable code 无路可达的代码 # U) c. T2 6 L! 7 Xw2 n7 k3 O$ h2 vZ118. Unterminated string or character constant 字符串缺少引号# T t% Nv2 b. |119. User break 用户强行中断了程序 o- _, U* O, | C- ; / 6 T+ O3 k% S9 L120. Void functions may not return a value

24、Void类型的函数不应有返回值 7 J9 v* E! 1 Nz! Z H121. Wrong number of arguments 调用函数的参数数目错 % # f0 V9 C F1 Z) W! A; K# Vl+ M122. xxx not an argument xxx不是参数 ( k 2 q7 6 P, A, U; v123. 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 Y125. xxx sta

25、tement missing ) xxx语句缺少右括号 9 V; t H7 XS: I* v3 H, m# 126. xxx statement missing ; xxx缺少分号 + N3 n, A, g1 N5 w127. 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 H5 L! Z8 A, P# h* + y4 q4 Z3 s. o12

26、9. 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 数

27、组尺寸太大 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 d

28、irective 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字符

29、常量太长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 fi

30、nd 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语

31、句中缺少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 p

32、arameter 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 v

33、alue 函数必需返回一个值 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 struct

34、ure 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 不正确的命令行参数:xxx

35、xxxxIncorrect commadn file argument:xxxxxx 不正确的配置文件参数:xxxxxxxIncorrect number format 错误的数据格式 Incorrect use of default Default使用不当 Initializer syntax error 初始化语法错误Invalid indirection 无效的间接运算 Invalid macro argument separator 无效的宏参数分隔符Invalid pointer addition 指针相加无效,Irreducible expression tree 无法执行的表达式

36、运算 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

37、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 ty

38、pe 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 cons

39、tant 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的两次定义不一致 Re

40、gister 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 结构体的长度为零,

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

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

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


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