编译错误信息 说明:Turbo C 的源程序错误分为三种类型:致命错误、一般错误和警告。其中,致命错误通常是内部编译出错;一般错误指程序的语法错误、磁盘或内存存取错误或命令行错误等;警告则只是指出一些得怀疑的情况,它并不防止编译的进行。 下面按字母顺序A~Z分别列出致命错误及一般错误信息,英汉对照及处理方法: (一)、致命错误英汉对照及处理方法: A-B致命错误 Bad call of in-line function (内部函数非法调用) Irreducable expression tree (不可约表达式树) Register allocation failure (存储器分配失败) (二)、一般错误信息英汉照及处理方法 #operator not followed by maco argument name(#运算符后没跟宏变元名) 'xxxxxx' not anargument ('xxxxxx'不是函数参数) Ambiguous symbol 'xxxxxx' (二义性符号'xxxxxx') Argument # missing name (参数#名丢失) Array bounds missing (数组的界限符"]"丢失) Array size too large (数组太大) Assembler statement too long (汇编语句太长) Bad configuration file (配置文件不正确) Bad file name format in include directive(包含指令中文件名格式不正确) Bad ifdef directive syntax (ifdef指令语法错误) Bad ifndef directive syntax (ifndef指令语法错误) Bad undef directive syntax (undef指令语法错误) Bad file size syntax (位字段长语法错误) Call of non-functin (调用未定义函数) Cannot modify a const object (不能修改一个长量对象) Case outside of switch (Case 出现在switch外) Case statement missing (Case语句漏掉) Character constant too long (字符常量太长) Compound statement missing (漏掉复合语句) Conflicting type modifiers (类型修饰符冲突) Constant expression required (需要常量表达式) Could not find file 'xxxxxx.xxx' (找不到'xxxxxx.xx'文件) 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关键字) DO while statement missing ( (Do while语句中漏掉了符号 "(") Duplicate Case (Case情况不唯一) Enum syntax error (Enum语法错误) Enumeration constant syntax error (枚举常量语法错误) Error Directive : xxxx (Error指令:xxxx) Error Writing output file (写输出文件错误) Expression syntax error (表达式语法错误) Extra parameter 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) (函数调用缺少")") Function definition out ofplace (函数定义位置错误) Function doesn't take a variable number of argument(函数不接受可变的参数个数) Goto statement missing label (Goto语句缺少标号) |
C语言 ( 粤ICP备11042647号-2 )
GMT+8, 2012-2-6 14:20
©2009-2011 cyuyan.com.cn