KEIL(MDK)的常见错误汇总(中英对照)

本文汇总了超过150种KEIL编译器常见的错误类型,包括内存溢出、语法错误、类型不匹配等,帮助开发者快速定位并修复C/C++程序中的问题,提升开发效率。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

错误项英文描述中文描述
error 1Out of memory内存溢出
error 2Identifier expected缺标识符
error 3Unknown identifier未定义的标识符
error 4Duplicate identifier重复定义的标识符
error 5Syntax error语法错误
error 6error in real constant实型常量错误
error 7error in integer constant整型常量错误
error 8String constant exceeds line字符串常量超过一行
error 10Unexpected end of file文件非正常结束
error 11Line too long行太长
error 12Type identifier expected未定义的类型标识符
error 13Too many open files打开文件太多
error 14Invalid file name无效的文件名
error 15File not found文件未找到
error 16Disk full磁盘满
error 17Invalid compiler directive无效的编译命令
error 18Too many files文件太多
error 19Undefined type in pointer def指针定义中未定义类型
error 20Variable identifier expected缺变量标识符
error 21error in type类型错误
error 22Structure too large结构类型太长
error 23Set base type out of range集合基类型越界
error 24File components may not be files or objectsfile分量不能是文件或对象
error 25Invalid string length无效的字符串长度
error 26Type mismatch类型不匹配
error 27Invalid subrange base type无效的子界基类型
error 28Lower bound greater than upper bound下界超过上界
error 29Ordinal type expected缺有序类型
error 30Integer constant expected缺整型常量
error 31Constant expected缺常量
error 32Integer or real constant expected缺整型或实型常量
error 33Pointer Type identifier expected缺指针类型标识符
error 34Invalid function result type无效的函数结果类型
error 35Label identifier expected缺标号标识符
error 36BEGIN expected缺BEGIN
error 37END expected缺END
error 38Integer expression expected缺整型表达式
error 39Ordinal expression expected缺有序类型表达式
error 40Boolean expression expected缺布尔表达式
error 41Operand types do not match操作数类型不匹配
error 42error in expression
error 43Illegal assignment非法赋值
error 44Field identifier expected缺域标识符
error 45Object file too large目标文件太大
error 46Undefined external未定义的外部过程与函数
error 47Invalid object file record无效的OBJ文件格式
error 48Code segment too large代码段太长
error 49Data segment too large数据段太长
error 50DO expected缺DO
error 51Invalid PUBLIC definition无效的PUBLIC定义
error 52Invalid EXTRN definition无效的EXTRN定义
error 53Too many EXTRN definitions太多的EXTRN定义
error 54OF expected缺OF
error 55INTERFACE expected缺INTERFACE
error 56Invalid relocatable reference无效的可重定位引用
error 57THEN expected缺THEN
error 58TO or DOWNTO expected缺TO或DOWNTO
error 59Undefined forward提前引用未经定义的说明
error 61Invalid typecast无效的类型转换
error 62Division by zero被零除
error 63Invalid file type无效的文件类型
error 64Cannot read or write variables of this type不能读写此类型变量
error 65Pointer variable expected缺指针类型变量
error 66String variable expected缺字符串变量
error 67String expression expected缺字符串表达式
error 68Circular unit reference单元UNIT部件循环引用
error 69Unit name mismatch单元名不匹配
error 70Unit version mismatch单元版本不匹配
error 71Internal stack overflow内部堆栈溢出
error 72Unit file format error单元文件格式错误
error 73IMPLEMENTATION expected缺IMPLEMENTATION
error 74Constant and case types do not match常量和CASE类型不匹配
error 75Record or object variable expected缺记录或对象变量
error 76Constant out of range常量越界
error 77File variable expected缺文件变量
error 78Pointer expression expected缺指针表达式
error 79Integer or real expression expected缺整型或实型表达式
error 80Label not within current block标号不在当前块内
error 81Label already defined标号已定义
error 82Undefined label in preceding statement part在前面未定义标号
error 83Invalid @ argument无效的@参数
error 84UNIT 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 96Too many variables变量太多
error 97Invalid FOR control variable无效的FOR循环控制变量
error 98Integer variable expected缺整型变量
error 99Files and procedure types are not allowed here该处不允许文件和过程类型
error 100String length mismatch字符串长度不匹配
error 101Invalid ordering of fields无效域顺序
error 102String constant expected缺字符串常量
error 103Integer or real variable expected缺整型或实型变量
error 104Ordinal variable expected缺有序类型变量
error 105INLINE errorINLINE错误
error 106Character expression expected缺字符表达式
error 107Too many relocation items重定位项太多
error 108Overflow in arithmetic operation算术运算溢出
error 112CASE constant out of range CASE常量越界
error 113error in statement
error 114Cannot call an interrupt procedure不能调用中断过程
error 116Must be in 8087 mode to compile this必须在8087模式编译
error 117Target address not found找不到目标地址
error 118Include files are not allowed here该处不允许INCLUDE文件
error 119No inherited methods are accessible here该处继承方法不可访问
error 121Invalid qualifier无效的限定符
error 122Invalid variable reference无效的变量引用
error 123Too many symbols符号太多
error 124Statement part too large语句体太长
error 126Files must be var parameters文件必须是变量形参
error 127Too many conditional symbols条件符号太多
error 128Misplaced conditional directive条件指令错位
error 129ENDIF directive missing缺ENDIF指令
error 130error in initial conditional defines初始条件定义错误
error 131Header does not match previous definition和前面定义的过程或函数不匹配
error 133Cannot evaluate this expression不能计算该表达式
error 134Expression incorrectly terminated表达式错误结束
error 135Invalid format specifier无效格式说明符
error 136Invalid indirect reference无效的间接引用
error 137Structured variables are not allowed here该处不允许结构变量
error 138Cannot evaluate without System unit没有System单元不能计算
error 139Cannot access this symbol不能存取符号
error 140Invalid floating point operation无效的符号运算
error 141Cannot compile overlays to memory不能编译覆盖模块至内存
error 142Pointer or procedural variable expected缺指针或过程变量
error 143Invalid procedure or function reference无效的过程或函数调用
error 144Cannot overlay this unit不能覆盖该单元
error 146File access denied不允许文件访问
error 147Object type expected缺对象类型
error 148Local object types are not allowed不允许局部对象类型
error 149VIRTUAL expected缺VIRTUAL
error 150Method identifier expected缺方法标识符
error 151Virtual constructors are not allowed不允许虚构造函数
error 152Constructor identifier expected缺构造函数标识符
error 153Destructor identifier expected缺析构函数标识符
error 154Fail only allowed within constructors只能在构造函数内使用Fail标准过程
error 155Invalid combination of opcode and operands操作数与操作符无效组合
error 156Memory reference expected缺内存引用指针
error 157Cannot add or subtract relocatable symbols不能加减可重定位符号
error 158Invalid register combination无效寄存器组合
error 159286/287 instructions are not enabled未激活286/287指令
error 160Invalid symbol reference无效符号指针
error 161Code generation error代码生成错误
error 162ASM expected缺ASM
error 166Procedure or function identifier expected缺过程或函数标识符
error 167Cannot export this symbol不能输出该符号
error 168Duplicate export name外部文件名重复
error 169Executable file header too large可执行文件头太长
error 170Too many segments段太多

参考:150+!单片机编译器KEIL的常见错误汇总(中英对照)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值