C語言報錯整理大全參考模板_第1頁
C語言報錯整理大全參考模板_第2頁
C語言報錯整理大全參考模板_第3頁
C語言報錯整理大全參考模板_第4頁
C語言報錯整理大全參考模板_第5頁
已閱讀5頁,還剩3頁未讀 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、C語言錯誤代碼及錯誤信息 錯誤釋義error 1: Out of memory 內存溢出error 2: Identifier expected 缺標識符error 3: Unknown identifier 未定義的標識符error 4: Duplicate identifier 重復定義的標識符error 5: Syntax error 語法錯誤error 6: Error in real constant 實型常量錯誤error 7: Error in integer constant 整型常量錯誤error 8: String constant exceeds line 字符串常量超過

2、一行error 10: Unexpected end of file 文件非正常結束error 11: Line too long 行太長error 12: Type identifier expected 未定義的類型標識符error 13: Too many open files 打開文件太多error 14: Invalid file name 無效的文件名error 15: File not found 文件未找到error 16: Disk full 磁盤滿error 17: Invalid compiler directive 無效的編譯命令error 18: Too many f

3、iles 文件太多error 19: Undefined type in pointer def 指針定義中未定義類型error 20: Variable identifier expected 缺變量標識符error 21: Error in type 類型錯誤error 22: Structure too large 結構類型太長error 23: Set base type out of range 集合基類型越界error 24: File components may not be files or objectsfile分量不能是文件或對象error 25: Invalid str

4、ing length 無效的字符串長度error 26: Type mismatch 類型不匹配error 27:error 27:Invalid subrange base type 無效的子界基類型error 28:Lower bound greater than upper bound 下界超過上界error 29:Ordinal type expected 缺有序類型error 30:Integer constant expected 缺整型常量error 31:Constant expected 缺常量1 / 8error 32:Integer or real constant ex

5、pected 缺整型或實型常量error 33:Pointer Type identifier expected 缺指針類型標識符error 34:Invalid function result type 無效的函數(shù)結果類型error 35:Label identifier expected 缺標號標識符error 36:BEGIN expected 缺BEGINerror 37:END expected 缺ENDerror 38:Integer expression expected 缺整型表達式error 39:Ordinal expression expected 缺有序類型表達式err

6、or 40:Boolean expression expected 缺布爾表達式error 41:Operand types do not match 操作數(shù)類型不匹配error 42:Error in expression 表達式錯誤error 43:Illegal assignment 非法賦值error 44:Field identifier expected 缺域標識符error 45:Object file too large 目標文件太大error 46:Undefined external 未定義的外部過程與函數(shù)error 47:Invalid object file recor

7、d 無效的OBJ文件格式error 48:Code segment too large 代碼段太長error 49:Data segment too large 數(shù)據段太長error 50:DO expected 缺DOerror 51:Invalid PUBLIC definition 無效的PUBLIC定義error 52:Invalid EXTRN definition 無效的EXTRN定義error 53: Too many EXTRN definitions 太多的EXTRN定義error 54:OF expected 缺O(jiān)Ferror 55:INTERFACE expected 缺

8、INTERFACEerror 56:Invalid relocatable reference 無效的可重定位引用error 57:THEN expected 缺THENerror 58:TO or DOWNTO expected 缺TO或DOWNTOerror 59:Undefined forward 提前引用未經定義的說明error 61:Invalid typecast 無效的類型轉換error 62:Division by zero 被零除error 63:Invalid file type 無效的文件類型error 64:Cannot read or write variables

9、of this type 不能讀寫此類型變量error 65:Pointer variable expected 缺指針類型變量error 66:String variable expected 缺字符串變量error 67:String expression expected 缺字符串表達式error 68:Circular unit reference 單元UNIT部件循環(huán)引用error 69:Unit name mismatch 單元名不匹配error 70:Unit version mismatch 單元版本不匹配error 71:Internal stack overflow 內部堆

10、棧溢出error 72:Unit file format error 單元文件格式錯誤error 73:IMPLEMENTATION expected 缺IMPLEMENTATIONerror 74:Constant and case types do not match 常量和CASE類型不匹配error 75:Record or object variable expected 缺記錄或對象變量error 76:Constant out of range 常量越界error 77:File variable expected 缺文件變量error 78:Pointer expression

11、 expected 缺指針表達式error 79:Integer or real expression expected 缺整型或實型表達式error 80:Label not within current block 標號不在當前塊內error 81:Label already defined 標號已定義error 82:Undefined label in preceding statement part 在前面未定義標號error 83:Invalid argument 無效的參數(shù)error 84:UNIT expected 缺UNITerror 85: "" exp

12、ected 缺“;”error 86: ":" expected 缺“:”error 87: "," expected 缺“,”error 88: "(" expected 缺“(”error 89: ")" expected 缺“)”error 90: "=" expected 缺“=”error 91: ":=" expected 缺“:=”error 92: "" or "(." Expected 缺“”或“(.”error 93

13、: "" or ".)" expected 缺“”或“.)”error 94: "." expected 缺“.”error 95: "." expected 缺“.”error 96:Too many variables 變量太多error 97:Invalid FOR control variable 無效的FOR循環(huán)控制變量error 98:Integer variable expected 缺整型變量error 99:Files and procedure types are not allowed her

14、e 該處不允許文件和過程類型error 100:String length mismatch 字符串長度不匹配error 101:Invalid ordering of fields 無效域順序error 102:String constant expected 缺字符串常量error 103:Integer or real variable expected 缺整型或實型變量error 104:Ordinal variable expected 缺有序類型變量error 105:INLINE error INLINE錯誤error 106:Character expression expec

15、ted 缺字符表達式error 107:Too many relocation items 重定位項太多error 108:Overflow in arithmetic operation 算術運算溢出error 112:CASE constant out of range CASE常量越界error 113:Error in statement 表達式錯誤error 114:Cannot call an interrupt procedure 不能調用中斷過程error 116:Must be in 8087 mode to compile this 必須在8087模式編譯error 117

16、:Target address not found 找不到目標地址error 118:Include files are not allowed here 該處不允許INCLUDE文件error 119:No inherited methods are accessible here 該處繼承方法不可訪問error 121:Invalid qualifier 無效的限定符error 122:Invalid variable reference 無效的變量引用error 123:Too many symbols 符號太多error 124:Statement part too large 語句體

17、太長error 126:Files must be var parameters 文件必須是變量形參error 127:Too many conditional symbols 條件符號太多error 128:Misplaced conditional directive 條件指令錯位error 129:ENDIF directive missing 缺ENDIF指令error 130:Error in initial conditional defines 初始條件定義錯誤error 131:Header does not match previous definition 和前面定義的過程

18、或函數(shù)不匹配error 133:Cannot evaluate this expression 不能計算該表達式error 134:Expression incorrectly terminated 表達式錯誤結束error 135:Invalid format specifier 無效格式說明符error 136:Invalid indirect reference 無效的間接引用error 137:Structured variables are not allowed here 該處不允許結構變量error 138:Cannot evaluate without System unit

19、沒有System單元不能計算error 139:Cannot access this symbol 不能存取符號error 140:Invalid floating point operation 無效的符號運算error 141:Cannot compile overlays to memory 不能編譯覆蓋模塊至內存error 142:Pointer or procedural variable expected 缺指針或過程變量error 143:Invalid procedure or function reference 無效的過程或函數(shù)調用error 144:Cannot over

20、lay this unit 不能覆蓋該單元error 146:File access denied 不允許文件訪問error 147:Object type expected 缺對象類型error 148:Local object types are not allowed 不允許局部對象類型error 149:VIRTUAL expected 缺VIRTUALerror 150: Method identifier expected 缺方法標識符error 151:Virtual constructors are not allowed 不允許虛構造函數(shù)error 152:Construct

21、or identifier expected 缺構造函數(shù)標識符error 153:Destructor identifier expected 缺析構函數(shù)標識符error 154:Fail only allowed within constructors 只能在構造函數(shù)內使用Fail標準過程error 155:Invalid combination of opcode and operands 操作數(shù)與操作符無效組合error 156:Memory reference expected 缺內存引用指針error 157:Cannot add or subtract relocatable sy

22、mbols 不能加減可重定位符號error 158:Invalid register combination 無效寄存器組合error 159:286/287 instructions are not enabled 未激活286/287指令error 160:Invalid symbol reference 無效符號指針error 161:Code generation error 代碼生成錯誤error 162:ASM expected 缺ASMerror 166:Procedure or function identifier expected 缺過程或函數(shù)標識符error 167:Ca

23、nnot export this symbol 不能輸出該符號error 168:Duplicate export name 外部文件名重復error 169:Executable file header toerror 170:Too many segments 段太多fatal error C1004: unexpected end of file found 未找到文件末尾(可能是括號匹配問題)  fatal error C1021: invalid prep

24、rocessor command '1nclude' 無效的編譯預處理命令'1nclude'  fatal error C1083: Cannot open include file: 'stdi.h': No such file or directory 不能打開頭文件'stdi.h',文件或文件夾不存在 error C2101: 

25、'&' on constant 不能計算常量的地址  error C2059: syntax error : 'while' 在'while'附近,存在語法錯誤  error C2061: syntax error : identifier 'x' 標識符x的附近,存在語法錯誤 error C2065: 'i

26、' : undeclared identifier 變量i未定義  error C2078: too many initializers  數(shù)組/結構等變量初始化時的數(shù)據太多  error C2087: '<Unknown>' : missing subscript 丟失數(shù)組下標  error C2106: '=' : lef

27、t operand must be l-value '='的左側應當是左值,即不能是常量 error C2115: '=' : incompatible types '='兩側的類型不兼容  error C2133: 'a' : unknown size a(可能是數(shù)組名)的大小不確定。 error C2137: 

28、empty character constant 空的字符常量  error C2143: syntax error : missing '' before . 在.之前,缺少''  error C2146: syntax error : missing ')' before identifier '.'

29、 在標識符'.'之前缺少')'  error C2181: illegal else without matching if else缺少匹配的if  error C2198: 'printf' : too few actual parameters 'printf'函數(shù)的參數(shù)太少  error C2223: left

30、60;of '->x' must point to struct/union '->x'的左側應是結構類型變量或聯(lián)合類型變量 error C2224: left of '.x' must have struct/union type '.x'的左側應是結構類型變量或聯(lián)合類型變量 error C2371: 'f1'&#

31、160;: redefinition; different basic types  函數(shù)'f1'的接口被重定義,參數(shù)類型或返回值類型不一致 warning C4101: 'x' : unreferenced local variable 'x'是一個從未被使用的局部變量  warning C4013: 'fi' undefined; assuming&

32、#160;extern returning int 函數(shù)'fi'未定義,假設其是外部函數(shù),返回值類型是int  warning C4020: 'fun' : too many actual parameters 調用'fun'函數(shù)時,有太多的實參  warning C4033: 'f3' must return a value 函數(shù)'f3'應當有返回值語句  warning C4047: '=' : 'int *' differs in levels of indirection from &#

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論