C 语言常见错误提示(英汉对照)
Turbo C 2.0 编译错误信息详解
Turbo C 编译程序检查源程序中三类出错信息:致命错误、一般错误、警告。
致命错误:通常是内部编译错误。发生致命错误时,编译立即停止,必须采取
一些适当的措施并重新编译。
一般错误:指程序的语法错误、磁盘或内存存取错误或命令错误。
警告:它并不阻止编译进行。它指出一些值得怀疑的情况,而这些情况本身又
有可能合理地成为源程序的一部分。
注意:编译程序指产生被检测到的信息,因为 C 并不限定在正文的某行放一条
语句,这样,真正产生错误的行可能在编译指出的前一行或几行。
Ambiguous operators need parentheses 不明确的运算需要用括号括起
Ambiguous symbol “xxx ” 不明确的符号
Argument list syntax error 参数表语法错误
Array bounds missing 丢失数组界限符
Array size toolarge 数组尺寸太大
Bad character in paramenters 参数中有不适当的字符
Bad file name format in include directive 包含命令中文件名格式不正确
Bad ifdef directive synatax 编译预处理 ifdef 有语法错
Bad undef directive syntax 编译预处理 undef 有语法错
Bit field too large 位字段太长
Call of non-function 调用未定义的函数
Call to function with no prototype 调用函数时没有函数的说明
Cannot modify a const object 不允许修改常量对象
Case outside of switch 漏掉了 case 语句
Case syntax error Case 语法错误
Code has no effect 代码不可述不可能执行到
Compound statement missing{ 分程序漏掉 "{"
Conflicting type modifiers 不明确的类型说明符
Constant expression required 要求常量表达式
Constant out of range in comparison 在比较中常量超出范围
Conversion may lose significant digits 转换时会丢失意义的数字
Conversion of near pointer not allowed 不允许转换近指针
Could not find file “xxx ” 找不到 XXX文件
Declaration missing ; 说明缺少 " ;"
Declaration syntax error 说明中出现语法错误
Default outside of switch Default 出现在 switch 语句之外
Define directive needs an identifier 定义编译预处理需要标识符
Division by zero 用零作除数
Do statement must have while Do-while 语句中缺少 while 部分
Enum syntax error 枚举类型语法错误
Enumeration constant syntax error 枚举常数语法错误
Error directive :xxx 错误的编译预处理命令
Error writing output file 写输出文件错误
Expression syntax error 表达式语法错误
Extra parameter in call 调用时出现多余错误
File name too long 文件名太长
Function call missing ) 函数