




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、C語言命語法錯誤大全C語言命語法錯誤大全fatalerrorC1004: unexpectedendoffilefound未找到文件末尾(可能是括號匹配問題)fatalerrorC1021: invalidpreprocessorcommand'1nclude'無效的編譯預(yù)處理命令'1nclude'fatalerrorC1083: Cannotopenincludefile: 'stdi.h': Nosuchfileordirectory不能打開頭文件'stdi.h',文件或文件夾
2、不存在errorC2101: '&' onconstantC語言命語法錯誤大全fatalerrorC1004: unexpectedendoffilefound未找到文件末尾(可能是括號匹配問題)fatalerrorC1021: invalidpreprocessorcommand'1nclude'無效的編譯預(yù)處理命令'1nclude'fatalerrorC1083: Cannotopenincludefile: 'stdi.h': Nosuchfile
3、ordirectory不能打開頭文件'stdi.h',文件或文件夾不存在errorC2101: '&' onconstant不能計(jì)算常量的地址errorC2059: syntaxerror: 'while'在'while'附近,存在語法錯誤errorC2061: syntaxerror: identifier'x'標(biāo)識符x的附近,存在語法錯誤errorC2065: 'i' : undeclaredide
4、ntifier變量i未定義errorC2078: toomanyinitializers數(shù)組/結(jié)構(gòu)等變量初始化時(shí)的數(shù)據(jù)太多errorC2087: '<Unknown>' : missingsubscript丟失數(shù)組下標(biāo)errorC2106: '=' : leftoperandmustbel-value'='的左側(cè)應(yīng)當(dāng)是左值,即不能是常量errorC2115: '=' : incompatibletypes'=
5、39;兩側(cè)的類型不兼容errorC2133: 'a' : unknownsizea(可能是數(shù)組名)的大小不確定。errorC2137: emptycharacterconstant空的字符常量errorC2143: syntaxerror: missing'' before.在.之前,缺少''errorC2146: syntaxerror: missing')' beforeidentifier'.'在標(biāo)識符'
6、;.'之前缺少')'errorC2181: illegalelsewithoutmatchingifelse缺少匹配的iferrorC2198: 'printf' : toofewactualparameters'printf'函數(shù)的參數(shù)太少errorC2223: leftof'->x' mustpointtostruct/union'->x'的左側(cè)應(yīng)是結(jié)構(gòu)類型變量或聯(lián)合類型變量errorC2224: leftof'.
7、x' musthavestruct/uniontype'.x'的左側(cè)應(yīng)是結(jié)構(gòu)類型變量或聯(lián)合類型變量errorC2371: 'f1' : redefinition; differentbasictypes函數(shù)'f1'的接口被重定義,參數(shù)類型或返回值類型不一致warningC4101: 'x' : unreferencedlocalvariable'x'是一個從未被使用的局部變量warningC4013: 'fi&
8、#39; undefined; assumingexternreturningint函數(shù)'fi'未定義,假設(shè)其是外部函數(shù),返回值類型是intwarningC4020: 'fun' : toomanyactualparameters調(diào)用'fun'函數(shù)時(shí),有太多的實(shí)參warningC4033: 'f3' mustreturnavalue函數(shù)'f3'應(yīng)當(dāng)有返回值語句warningC4047: '=' : &
9、#39;int*' differsinlevelsofindirectionfrom'int'賦值運(yùn)算中的類型轉(zhuǎn)換:從'int'轉(zhuǎn)換到'int*'可能存在問題warningC4098: 'f2' : 'void' functionreturningavalue函數(shù)'f2'是無返回值的函數(shù),竟然有返回值語句。warningC4133: 'function' : incompatibletypes-&
10、#160;from'.' to'.' 不兼容的類型轉(zhuǎn)換(從'.'類型向'.'類型)warningC4244: 'initializing' : conversionfrom'constdouble' to'int', possiblelossofdata在初始化數(shù)據(jù)時(shí),類型轉(zhuǎn)換可能導(dǎo)致數(shù)據(jù)丟失warningC4305: 'initializing' : truncati
11、onfrom'constint' to'char'初始化時(shí),數(shù)據(jù)被截?cái)鄔arningC4700: localvariable'x' usedwithouthavingbeeninitialized局部變量'x'在被使用之前未初始化,errorLNK2001: unresolvedexternalsymbol_f5f5從未定義1. Ambiguous operators need parentheses 不明確的運(yùn)算需要用括號括起 2. Ambiguous symbol
12、'xxx' 不明確的符號 3. Argument list syntax error 參數(shù)表語法錯誤 4. Array bounds missing 丟失數(shù)組界限符5. Array size toolarge 數(shù)組尺寸太大6. Bad character in paramenters 參數(shù)中有不適當(dāng)?shù)淖址?#160;7. Bad file name format in include directive 包含命令中文件名格式不正確 8. Bad ifdef direc
13、tive synatax 編譯預(yù)處理ifdef有語法錯 9. Bad undef directive syntax 編譯預(yù)處理undef有語法錯 10. Bit field too large 位字段太長 11. Call of non-function 調(diào)用未定義的函數(shù) 12. Call to function with no prototype 調(diào)用函數(shù)時(shí)沒有函數(shù)的說明 13. Cannot modify a const object 不允許修改常量對象 14
14、. Case outside of switch 漏掉了case 語句 15. Case syntax error Case 語法錯誤16. Code has no effect 代碼不可能執(zhí)行到17. Compound statement missing 分程序漏掉"" 18. Conflicting type modifiers 不明確的類型說明符 19. Constant expression required 要求常量表達(dá)式 20. Constan
15、t out of range in comparison 在比較中常量超出范圍 21. Conversion may lose significant digits 轉(zhuǎn)換時(shí)會丟失意義的數(shù)字 22. Conversion of near pointer not allowed 不允許轉(zhuǎn)換近指針 23. Could not find file 'xxx' 找不到XXX文件24. Declaration missing ; 說明缺少";" 25.
16、 Declaration syntax error 說明中出現(xiàn)語法錯誤 26. Default outside of switch Default 出現(xiàn)在switch語句之外27. Define directive needs an identifier 定義編譯預(yù)處理需要標(biāo)識符 28. Division by zero 用零作除數(shù) 29. Do statement must have while Do-while語句中缺少while部分 30. Enum syntax error 枚舉類型語法錯誤
17、0;31. Enumeration constant syntax error 枚舉常數(shù)語法錯誤32. Error directive :xxx 錯誤的編譯預(yù)處理命令 33. Error writing output file 寫輸出文件錯誤 34. Expression syntax error 表達(dá)式語法錯誤 35. Extra parameter in call 調(diào)用時(shí)出現(xiàn)多余錯誤 36. File name too long 文件名太長 37. Funct
18、ion call missing ) 函數(shù)調(diào)用缺少右括號 38. Fuction definition out of place 函數(shù)定義位置錯誤 39. Fuction should return a value 函數(shù)必需返回一個值 40. Goto statement missing label Goto語句沒有標(biāo)號 41. Hexadecimal or octal constant too large 16進(jìn)制或8進(jìn)制常數(shù)太大42. Illegal character 'x'
19、 非法字符x 43. Illegal initialization 非法的初始化 44. Illegal octal digit 非法的8進(jìn)制數(shù)字 45. Illegal pointer subtraction 非法的指針相減 46. Illegal structure operation 非法的結(jié)構(gòu)體操作 47. Illegal use of floating point 非法的浮點(diǎn)運(yùn)算 48. Illegal use of pointer 指針使用非
20、法 49. Improper use of a typedefsymbol 類型定義符號使用不恰當(dāng)50. In-line assembly not allowed 不允許使用行間匯編 51. Incompatible storage class 存儲類別不相容 52. Incompatible type conversion 不相容的類型轉(zhuǎn)換 53. Incorrect number format 錯誤的數(shù)據(jù)格式 54. Incorrect use of default Default
21、使用不當(dāng) 55. Invalid indirection 無效的間接運(yùn)算 56. Invalid pointer addition 指針相加無效 57. Irreducible expression tree 無法執(zhí)行的表達(dá)式運(yùn)算 58. Lvalue required 需要邏輯值0或非0值 59. Macro argument syntax error 宏參數(shù)語法錯誤 60. Macro expansion too long 宏的擴(kuò)展以后太長 61.
22、Mismatched number of parameters in definition 定義中參數(shù)個數(shù)不匹配62. Misplaced break 此處不應(yīng)出現(xiàn)break語句 63. Misplaced continue 此處不應(yīng)出現(xiàn)continue語句 64. Misplaced decimal point 此處不應(yīng)出現(xiàn)小數(shù)點(diǎn) 65. Misplaced elif directive 不應(yīng)編譯預(yù)處理elif 66. Misplaced else 此處不應(yīng)出現(xiàn)else
23、67. Misplaced else directive 此處不應(yīng)出現(xiàn)編譯預(yù)處理else68. Misplaced endif directive 此處不應(yīng)出現(xiàn)編譯預(yù)處理endif 69. Must be addressable 必須是可以編址的 70. Must take address of memory location 必須存儲定位的地址71. No declaration for function 'xxx' 沒有函數(shù)xxx的說明 72. No stack
24、缺少堆棧 73. No type information 沒有類型信息74. Non-portable pointer assignment 不可移動的指針(地址常數(shù))賦值75. Non-portable pointer comparison 不可移動的指針(地址常數(shù))比較 76. Non-portable pointer conversion 不可移動的指針(地址常數(shù))轉(zhuǎn)換 77. Not a valid expression format type 不合法的表達(dá)式格式 78. Not an
25、allowed type 不允許使用的類型 79. Numeric constant too large 數(shù)值常太大 80. Out of memory 內(nèi)存不夠用 81. Parameter 'xxx' is never used 能數(shù)xxx沒有用到82. Pointer required on left side of -> 符號->的左邊必須是指針83. Possible use of 'xxx' before definition
26、在定義之前就使用了xxx(警告) 84. Possibly incorrect assignment 賦值可能不正確 85. Redeclaration of 'xxx' 重復(fù)定義了xxx 86. Redefinition of 'xxx' is not identical xxx的兩次定義不一致87. Register allocation failure 寄存器定址失敗 88. Repeat count needs an lvalue 重復(fù)計(jì)數(shù)需要邏輯值
27、0;89. Size of structure or array not known 結(jié)構(gòu)體或數(shù)給大小不確定 90. Statement missing ; 語句后缺少";" 91. Structure or union syntax error 結(jié)構(gòu)體或聯(lián)合體語法錯誤92. Structure size too large 結(jié)構(gòu)體尺寸太大 93. Sub scripting missing 下標(biāo)缺少右方括號 94. Superfluous &
28、with function or array 函數(shù)或數(shù)組中有多余的"&"95. Suspicious pointer conversion 可疑的指針轉(zhuǎn)換 96. Symbol limit exceeded 符號超限 97. Too few parameters in call 函數(shù)調(diào)用時(shí)的實(shí)參少于函數(shù)的參數(shù)不98. Too many default cases Default太多(switch語句中一個) 99. Too many error or warning messages
29、160;錯誤或警告信息太多 100. Too many type in declaration 說明中類型太多 101. Too much auto memory in function 函數(shù)用到的局部存儲太多 102. Too much global data defined in file 文件中全局?jǐn)?shù)據(jù)太多 103. Two consecutive dots 兩個連續(xù)的句點(diǎn) 104. Type mismatch in parameter xxx 參數(shù)xxx類型不匹配 1
30、05. Type mismatch in redeclaration of 'xxx' xxx重定義的類型不匹配 106. Unable to create output file 'xxx' 無法建立輸出文件xxx 107. Unable to open include file 'xxx' 無法打開被包含的文件xxx 108. Unable to open input file 'xxx' 無法打開輸入文件xxx
31、0;109. Undefined label 'xxx' 沒有定義的標(biāo)號xxx 110. Undefined structure 'xxx' 沒有定義的結(jié)構(gòu)xxx 111. Undefined symbol 'xxx' 沒有定義的符號xxx 112. Unexpected end of file in comment started on line xxx 從xxx行開始的注解尚未結(jié)束文件不能結(jié)束113. Unexpected end of
32、 file in conditional started on line xxx 從xxx 開始的條件語句尚未結(jié)束文件不能結(jié)束 114. Unknown assemble instruction 未知的匯編結(jié)構(gòu) 115. Unknown option 未知的操作 116. Unknown preprocessor directive: 'xxx' 不認(rèn)識的預(yù)處理命令xxx117. Unreachable code 無路可達(dá)的代碼 118. Unter
33、minated string or character constant 字符串缺少引號119. User break 用戶強(qiáng)行中斷了程序 120. Void functions may not return a value Void類型的函數(shù)不應(yīng)有返回值 121. Wrong number of arguments 調(diào)用函數(shù)的參數(shù)數(shù)目錯 122. 'xxx' not an argument xxx不是參數(shù) 123. 'xxx' not part of structu
34、re xxx不是結(jié)構(gòu)體的一部分124. xxx statement missing ( xxx語句缺少左括號 125. xxx statement missing ) xxx語句缺少右括號 126. xxx statement missing ; xxx缺少分號 127. xxx' declared but never used 說明了xxx但沒有使用 128. xxx' is assigned a value which is never used 給xxx賦了值但未用過C語言
35、編譯錯誤信息錦集說明:Turbo C 的源程序錯誤分為三種類型:致命錯誤、一般錯誤和警告。其中,致命錯誤通常是內(nèi)部編譯出錯;一般錯誤指程序的語法錯誤、磁盤或內(nèi)存存取錯誤或命令行錯誤等;警告則只是指出一些得懷疑的情況,它并不防止編譯的進(jìn)行。下面按字母順序AZ分別列出致命錯誤及一般錯誤信息,英漢對照及處理方法:(一)、致命錯誤英漢對照及處理方法:致命錯誤Bad call of in-line function (內(nèi)部函數(shù)非法調(diào)用)分析與處理:在使用一個宏定義的內(nèi)部函數(shù)時(shí),沒能正確調(diào)用。一個內(nèi)部函數(shù)以兩個下劃線(_)開始和結(jié)束。Irreducable expression tree (不可約表達(dá)式樹
36、)分析與處理:這種錯誤指的是文件行中的表達(dá)式太復(fù)雜,使得代碼生成程序無法為它生成代碼。這種表達(dá)式必須避免使用。Register allocation failure (存儲器分配失敗)分析與處理:這種錯誤指的是文件行中的表達(dá)式太復(fù)雜,代碼生成程序無法為它生成代碼。此時(shí)應(yīng)簡化這種繁雜的表達(dá)式或干脆避免使用它。(二)、一般錯誤信息英漢照及處理方法#operator not followed by maco argument name(#運(yùn)算符后沒跟宏變元名)分析與處理:在宏定義中,#用于標(biāo)識一宏變串。“#”號后必須跟一個宏變元名。xxxxxx not anargument (xxxxxx不是函數(shù)參
37、數(shù))分析與處理:在源程序中將該標(biāo)識符定義為一個函數(shù)參數(shù),但此標(biāo)識符沒有在函數(shù)中出現(xiàn)。Ambiguous symbol xxxxxx (二義性符號xxxxxx)分析與處理:兩個或多個結(jié)構(gòu)的某一域名相同,但具有的偏移、類型不同。在變量或表達(dá)式中引用該域而未帶結(jié)構(gòu)名時(shí),會產(chǎn)生二義性,此時(shí)需修改某個域名或在引用時(shí)加上結(jié)構(gòu)名。Argument # missing name (參數(shù)#名丟失)分析與處理:參數(shù)名已脫離用于定義函數(shù)的函數(shù)原型。如果函數(shù)以原型定義,該函數(shù)必須包含所有的參數(shù)名。Argument list syntax error (參數(shù)表出現(xiàn)語法錯誤)分析與處理:函數(shù)調(diào)用的參數(shù)間必須以逗號隔開,并以一個右括號結(jié)束。若源文件中含有一個其后不是逗號也不是右括號的參數(shù),則出錯。Array bounds missing (數(shù)組的界限符""丟失)分析與處理:在源文件中定義了一個數(shù)組,但此數(shù)組沒有以下右方括號結(jié)束。Array size too
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 智慧斷路器合同協(xié)議書
- 聯(lián)合拍地協(xié)議書
- 花唄升級協(xié)議書
- 繳費(fèi)平臺協(xié)議書
- 退房定金協(xié)議書
- 英文贈予協(xié)議書
- 混凝土開票個人協(xié)議書
- 簽署保密協(xié)議書
- 自愿分房協(xié)議書
- 聯(lián)營單位協(xié)議書
- 29.液化天然氣加氣站特種設(shè)備事故應(yīng)急預(yù)案
- 浙江省金華市2025屆六年級下學(xué)期5月模擬預(yù)測數(shù)學(xué)試題含解析
- 關(guān)節(jié)科考試試題及答案
- 2025新高考地理復(fù)習(xí)十大時(shí)事熱點(diǎn)及命題預(yù)測(學(xué)生版+解析版)
- 診所應(yīng)急知識培訓(xùn)課件
- 央行MPA考核細(xì)則
- 2025-2030全球及中國自動入侵與攻擊模擬行業(yè)市場現(xiàn)狀供需分析及市場深度研究發(fā)展前景及規(guī)劃可行性分析研究報(bào)告
- 大數(shù)據(jù)時(shí)代統(tǒng)計(jì)信息安全挑戰(zhàn)與應(yīng)對策略研究
- 2025年攪拌車市場規(guī)模分析
- 高處作業(yè)風(fēng)險(xiǎn)及隱患排查(安全檢查)清單
- 網(wǎng)絡(luò)與信息安全突發(fā)事件應(yīng)急預(yù)案演練記錄
評論
0/150
提交評論