读书人

Delphi编译异常信息对照表

发布时间: 2012-12-18 12:43:41 作者: rapoo

Delphi编译错误信息对照表

一、Pascal编译错误信息中英文对照表
下面列出在编译程序时可能出现的错误,在集成环境下,Turbo?Pascal将自动加载源程序并定位于出错处:

错误代码及错误信息??????????????????????????错误释义
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?????字符串常量超过一行
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?files???????????文件太多
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?string?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???????缺常量
error?32:Integer?or?real?constant?expected????缺整型或实型常量
error?33:Pointer?Type?identifier?expected????缺指针类型标识符
error?34:Invalid?function?result?type?????无效的函数结果类型
error?35:Label?identifier?expected?????缺标号标识符
error?36:BEGIN?expected???????缺BEGIN
error?37:END?expected???????缺END
error?38:Integer?expression?expected?????缺整型表达式
error?39:Ordinal?expression?expected?????缺有序类型表达式
error?40:Boolean?expression?expected?????缺布尔表达式
error?41:Operand?types?do?not?match?????操作数类型不匹配
error?42:Error?in?expression???????表达式错误
error?43:Illegal?assignment???????非法赋值
error?44:Field?identifier?expected??????缺域标识符
error?45:Object?file?too?large??????目标文件太大
error?46:Undefined?external???????未定义的外部过程与函数
error?47:Invalid?object?file?record?????无效的OBJ文件格式
error?48:Code?segment?too?large??????代码段太长
error?49:Data?segment?too?large??????数据段太长
error?50:DO?expected????????缺DO
error?51:Invalid?PUBLIC?definition?????无效的PUBLIC定义
error?52:Invalid?EXTRN?definition?????无效的EXTRN定义
error?53:?Too?many?EXTRN?definitions?????太多的EXTRN定义
error?54:OF?expected????????缺OF
error?55:INTERFACE?expected??????缺INTERFACE
error?56:Invalid?relocatable?reference?????无效的可重定位引用
error?57:THEN?expected???????缺THEN
error?58:TO?or?DOWNTO?expected?????缺TO或DOWNTO
error?59:Undefined?forward???????提前引用未经定义的说明
error?61:Invalid?typecast???????无效的类型转换
error?62:Division?by?zero???????被零除
error?63:Invalid?file?type???????无效的文件类型
error?64:Cannot?read?or?write?variables?of?this?type?????不能读写此类型变量
error?65:Pointer?variable?expected?????缺指针类型变量
error?66:String?variable?expected??????缺字符串变量
error?67:String?expression?expected?????缺字符串表达式
error?68:Circular?unit?reference??????单元UNIT部件循环引用
error?69:Unit?name?mismatch??????单元名不匹配
error?70:Unit?version?mismatch??????单元版本不匹配
error?71:Internal?stack?overflow??????内部堆栈溢出
error?72:Unit?file?format?error??????单元文件格式错误
error?73:IMPLEMENTATION?expected????缺IMPLEMENTATION
error?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?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??????无效的@参数
error?84:UNIT?expected???????缺UNIT
error?85:?";"?expected????????缺“;”
error?86:?":"?expected????????缺“:”
error?87:?","?expected????????缺“,”
error?88:?"("?expected????????缺“(”
error?89:?")"?expected????????缺“)”
error?90:?"="?expected????????缺“=”
error?91:?":="?expected???????缺“:=”
error?92:?"["?or?"(."?Expected??????缺“[”或“(.”
error?93:??"]"?or?".)"?expected??????缺“]”或“.)”
error?94:?"."?expected????????缺“.”
error?95:??".."?expected????????缺“..”
error?96:Too?many?variables??????变量太多
error?97:Invalid?FOR?control?variable?????无效的FOR循环控制变量
error?98:Integer?variable?expected?????缺整型变量
error?99:Files?and?procedure?types?are?not?allowed?here?该处不允许文件和过程类型
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?expected????缺字符表达式
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: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?????语句体太长
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?????和前面定义的过程或函数不匹配
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???没有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??无效的过程或函数调用
error?144:Cannot?overlay?this?unit?????不能覆盖该单元
error?146:File?access?denied???????不允许文件访问
error?147:Object?type?expected??????缺对象类型
error?148:Local?object?types?are?not?allowed???不允许局部对象类型
error?149:VIRTUAL?expected??????缺VIRTUAL
error?150:?Method?identifier?expected?????缺方法标识符
error?151:Virtual?constructors?are?not?allowed???不允许虚构造函数
error?152:Constructor?identifier?expected????缺构造函数标识符
error?153:Destructor?identifier?expected????缺析构函数标识符
error?154:Fail?only?allowed?within?constructors????????只能在构造函数内使用Fail标准过程
error?155:Invalid?combination?of?opcode?and?operands?操作数与操作符无效组合
error?156:Memory?reference?expected?????缺内存引用指针
error?157:Cannot?add?or?subtract?relocatable?symbols?????不能加减可重定位符号
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???????缺ASM
error?166:Procedure?or?function?identifier?expected??缺过程或函数标识符
error?167:Cannot?export?this?symbol?????不能输出该符号
error?168:Duplicate?export?name??????外部文件名重复
error?169:Executable?file?header?too?large????可执行文件头太长
error?170:Too?many?segments?????????段太多


二、Pascal运行错误信息中英文对照表
?
运行错误是指程序运行时出现的错误,当发生时,Turbo?Pascal显示如下信息:
  RUNTIME?ERROR?NNNN?AT?XXXX:YYYY?
 ??其中,NNNN是运行错误代码,XXXX是错误发生的程序段,YYYY是错误地址偏移。

运行错误分为四类:1-99为DOS错误;100-149为I/O错误,发生I/O后,如果使用了编译开关{$I+},程序将终止执行,否则编译开关为{$I-},程序继续执行,并由IOResult函数返回错误信息;?150-199为严重错误,200-255为致命错误,致命错误将立即终止程序执行。

错误代码及错误信息???????????????????????????错误释义
error?1:Invalid?function?number????无效函数号
error?2:File?not?found???????文件未找到
error?3:Path?not?found???????找不到路径
error?4:Too?many?open?files?????打开文件太多
error?5:File?access?denied??????文件不允许访问
error?6:Invalid?file?handle?????无效文件句柄
error?12:Invalid?file?access?code????无效文件存取代码
error?15:Invalid?drive?number?????无效驱动器号
error?16:Cannot?remove?current?directory??不能删除当前目录
error?17:Cannot?rename?across?drives???不能跨驱动器改名
error?18:No?more?files???????没有文件了
error?100:Disk?read?error??????读磁盘错
error?101:Disk?write?error??????写磁盘错
error?102:File?not?assigned?????文件变量未赋值
error?103:File?not?open??????文件未打开
error?104:File?not?open?for?input????文件未打开为写方式
error?105:File?not?open?for?output????文件未打开为读方式
error?106:Invalid?numeric?format????无效数值格式
error?150:Disk?is?write-protected????磁盘写保护
error?151:Bad?drive?request?struct?length??错误的驱动器请求结构长度
error?152:Drive?not?ready??????驱动器未准备好
error?154:CRC?error?in?data?????数据CRC校验错
error?156:Disk?seek?error??????磁盘定位错
error?157:Unknown?media?type?????未知的介质类型
error?158:Sector?Not?Found??????找不到扇区
error?159:Printer?out?of?paper?????打印机缺纸
error?160:Device?write?fault?????设备写错误
error?161:Device?read?fault?????设备读错误
error?162:Hardware?failure??????硬件故障
error?200:Division?by?zero??????被零除
error?201:Range?check?error?????范围检查出错
error?202:Stack?overflow?error?????栈溢出
error?203:Heap?overflow?error?????堆溢出
error?204:Invalid?pointer?operation???无效的指针操作
error?205:Floating?point?overflow????浮点运算上溢
error?206:Floating?point?underflow????浮点运算下溢
error?207:Invalid?floating?point?operation??无效的浮点运算
error?208:Overlay?manager?not?installed??未安装覆盖管理程序
error?209:Overlay?file?read?error????读覆盖文件错误
error?210:Object?not?initialized????对象未初始化
error?211:Call?to?abstract?method????调用抽象方法
error?212:Stream?registration?error???流注册错误
error?213:Collection?index?out?of?range??集合下标越界
error?214:Collection?overflow?error???集合上溢
error?215:Arithmetic?overflow?error???算术运算上溢
error?216:General?Protection?fault????????一般保护性错误

?

?

=========================================================

* 编 译 错 误 信 息 *

';' not allowed before 'ELSE' ElSE前不允许有“;”
'<clause>' clause not allowed in OLE automation section 在OLE自动区段不允许“<clause>”子句
'<name>' is not a type identifier <name>不是类型标识符
'<name>' not previously declared as a PROPERTY <name>前面没有说明PROPERTY
'GOTO <label>' leads into or out of TRY statement GOTO <label>进入或超出TRY语句的范围
<clause1> clause expected, but <clause2> found 要求子句<clause1>,但出现<clause2>
16-Bit fixup encountered in object file '<text>' 在对象文件<text>遇到16位修复
486/487 instructions not enabled 不能用486/487指令
Abstract methods must be virtual or dynamic 抽象方法必须为虚拟的或动态的
Array type required 需要数组类型
Assignment to FOR-Loop variable '<Name>' 给FOR循环变量<Name>赋值
Bad argument type in variable type array constructor 在变量类型数组结构中不正确的参数类型
Bad file format '<name>' 错误的文件格式<name>
Bad file format: <Filename> 错误的文件格式<Filename>
Bad global symbol definition: '<Name>' in object file '<Filename>' 对象文件'<Filename>'中错误的全局符号定义'<Name>'
Bad unit format: <Filename> 错误的单元格式<Filename>
BREAK or CONTINUE outside of loop BREAK或CONTINUE超出循环
Cannot add or subtract relocatable symbols 不能增加或减少可重置的符号
Cannot assign to a read-only property 不能指定只读属性
Cannot BREAK, CONTINUE or EXIT out of a FINALLY clause 超出FINALLY子句的范围,不能使用BREAK,CONTINUE或EXIT语句
Cannot initialize local variables 不能初始化局部变量
Cannot initialize multiple variables 不能初始化多个变量
Cannot initialize thread local variables 不能初始化线程局部变量
Cannot override a static method 不能覆盖静态方法
Cannot read a write-only property 不能读取只写属性
Case label outside of range of case expression CASE标号超出了CASE表达式的范围
Circular unit reference to <Unitname> 对单元<Unitname>循环引用
Class already has a default property 类已具有默认的属性
Class does not have a default property 类没有默认的属性
Class or object types only allowed in type section 在类型区段只允许有类或对象类型
Class type required 需要类类型
Close error on <Filename> 文件<Filename>关闭错误
Compile terminated by user 用户中止编译
Constant expected 要求常量
Constant expression expected 要求常量表达式
Constant expression violates subrange bounds 常量表达式超出子界范围
Constant object cannot be passed as var parameter 常量对象不能作为变量参数传递
Constant or type identifier expected 要求常量或类型标识符
Constants cannot be used as open array arguments 常量不能用作打开数组参数?
Constructing instance of '<name>' containing abstract methods 构造的<name>实体包含抽象的方法
Could not compile used unit '<Unitname>' 不能用单元<Unitname>编译
Could not create output file <Filename> 不能建立输出文件<Filename>
Could not load RLINK32.DLL 不能加载RLINK32.DLL
Data type too large: exceeds 2 GB 数据类型太大:超过2GB
Declaration of <Name> differs from previous declaration <Name>的说明与先前的说明不同
Default property must be an array property 默认的属性必须为数组属性
Default values must be of ordinal, pointer or small set type 默认的值必须为序数、指针或小集类型
Destination cannot be assigned to 目标不能指定
Destination is inaccessible 目标不能存取
Dispid '<number>' already used by '<name>' DISPID标识号已被<name>使用
Dispid clause only allowed in OLE automation section DISPID子句只能在OLE自动区段中使用
Division by zero 除数为零
Duplicate case label CASE标号重复
Duplicate tag value 重复的标志值
Dynamic method or message handler not allowed here 这里不允许有动态方法或信息处理程序?
Dynamic methods and message handlers not allowed in OLE automation section在OLE自动区段不允许有动态方法或消息处理程序
Element 0 inaccessible - use 'Length' or 'SetLength' 元素0不能存取-使用LENGTH或SETLENGTH
Error in numeric constant 数值常量错误
EXCEPT or FINALLY expected 要求EXCEPT或FINALLY
EXPORTS allowed only at global scope EXPORTS只允许在全局范围使用
Expression has no value 表达式没有值
Expression too complicated 表达式太复杂
Field definition not allowed in OLE automation section 在OLE自动区段中不允许域定义
Field definition not allowed after methods or properties 在方法或属性后不允许域定义
Field or method identifier expected 要求域或方法标识符
File not found: <Filename> 文件<Filename>没有找到
File type not allowed here 这儿不允许文件类型
For loop control variable must be simple local variable FOR循环控制变量必须为简单局部变量
For loop control variable must have ordinal type FOR循环控制变量必须为序数类型
FOR or WHILE loop executes zero times - deleted FOR或WHILE循环执行零次-删除
FOR-Loop variable '<name>' cannot be passed as var parameter FOR循环变量<name>不能作为参数传递
FOR-Loop variable '<Name>' may be undefined after loop 在循环后的FOR循环变量<NAME>是不确定的
Function needs result type 函数需要结果类型
Identifier redeclared: '<name>' 标识符<name>重复说明
Illegal character in input file: '<char>' ($<hex>) 在输入文件中的非法字符'<char>'
Illegal message method index 非法的消息方法指针
Illegal reference to symbol '<Name>' in object file '<Filename>' 在对象文件<filename>中对符号<name>的非法引用
Illegal type in OLE automation section: '<typename>' 在OLE自动区段中的非法类型<typename>
Illegal type in Read/Readln statement 在Read/Readln语句中的非法类型
Illegal type in Write/Writeln statement 在Write/Writeln语句中的非法类型
Inaccessible value 不可存取的值
Incompatible types: '<name>' and '<name>' 不兼容的类型<name>和<name>
Incompatible types: <text> 不兼容的类型<text>
Inline assembler stack overflow 内联汇编溢出
Inline assembler syntax error 内联汇编语法错误
Instance variable '<name>' inaccessible here 实体变量<name>在这里不能存取
Integer constant or variable name expected 要求整形常量或变量名
Integer constant too large 整型常量太大
Internal error: <ErrorCode> 内部错误<errorcode>
Invalid combination of opcode and operands 操作码与操作对象的无效组合
Invalid compiler directive: '<Directive>' 无效的编译指令<DIRECTIVE>
Invalid function result type 无效的函数值类型
Invalid message parameter list 无效的消息参数列表
Invalid register combination 无效的寄存器组合
Invalid typecast 无效的TYPECASE
Label '<Name>' is not declared in current procedure 在当前的过程中没有说明标号<NAME>
Label already defined: '<Labelname>' 标号<LABELNAME>已经定义
Label declaration not allowed in interface part 在界面部分不允许标号说明
Label declared and referenced, but not set: '<label>' 标号被<label>说明及引用,但不能设置
Label expected 要求标号
Left side cannot be assigned to 左边不能赋值
Line too long (more than 255 characters) 行太长(超出255个字符)
Local class or object types not allowed 不允许局部的类或对象类型?
Local procedure/function '<Name>' assigned to procedure variable 局部过程/函数<NAME>赋给过程变量
LOOP/JCXZ distance out of range LOOP/JCXZ距离超出范围
Low bound exceeds high bound 下界超过上界
Memory reference expected 要求内存引用
Method '<name>' hides virtual method of base type '<name>' 方法<NAME>隐藏了基类型为<NAME>的虚拟方法
Method '<name>' not found in base class 在基类中没有找到方法<NAME>
Method identifier expected 要求方法标识符
Missing ENDIF directive 缺少ENDIF指令
Missing<

读书人网 >.NET

热点推荐