C语言编译常见错误提示.docx
C语言编译常见错误提示
Ambiguousoperatorsneedparentheses不明确的运算需要括号
Ambiguoussymbolxxx 不明确的符号Argumentlistsyntaxerror 参数表语法错误Arrayboundsmissing 丢失数组界限符Arraysizetoolarge 数组尺寸太大
Badcharacterinparameters 参数中有不适当的字符
Badfilenameformatinincludedirective 包含命令中文件名格式不正确
Callofnon-function 调用未定义的函数
Calltofunctionwithnoprototype 调用函数时没有函数说明
Cannotmodifyaconstobject 不允许修改常量对象
Caseoutsideofswitch 漏掉了case语句
Casesyntaxerror Case语法错误
Codehasnoeffect 代码不可述不可能执行到Compoundstatementmissing{ 分程序漏掉{Conflictingtypemodifiers 不明确的类型说明符Constantexpressionrequired 要求常量表达式
Constantoutofrangeincomparison在比较中常量超出范围Conversionmaylosesignificantdigits转换时会丢失意义的数Couldnotfindfilexxx找不到XXX文件
Declarationmissing; 说明缺少;Declarationsyntaxerror 说明中出现语法错误
Defaultoutsideofswitch Default出现在switch语句之外Definedirectiveneedsanidentifier define命令需要标识符Divisionbyzero 用零作除数
Dostatementmusthavewhile Do语句中需要while部分
Enumsyntaxerror 枚举类型语法错误
Enumerationconstantsyntaxerror 枚举常数语法错误
Errordirective:xxx 错误的编译预处理命令xxxErrorwritingoutputfile 写输出文件错误Expressionsyntaxerror 表达式语法错误Extraparameterincall 调用时出现多余参数Filenametoolong 文件名太长
Functioncallmissing) 函数调用缺少右括号
Functiondefinitionoutofplace 函数定义位置错误
Functionshouldreturnavalue 函数必需返回一个值Hexadecimaloroctalconstanttoolarge 16进制或8进制常数太大
Illegalcharacterx 非法字符xIllegalinitialization 非法的初始化Illegaloctaldigit 非法的8进制数
Illegalpointersubtraction 非法的指针相减Illegalstructureoperation 非法的结构体操作Illegaluseoffloatingpoint 非法的浮点运算Illegaluseofpointer 指针使用非法
Improperuseofatypedefsymbol 类型定义符号使用不恰当In-lineassemblynotallowed 不允许使用行间汇编Incompatiblestorageclass 存储类别不相容
Incompatibletypeconversion 不相容的类型转换Incorrectnumberformat 错误的数据格式Incorrectuseofdefault default使用不当
Invalidindirection 无效的间接运算
Invalidpointeraddition 指针相加无效
Irreducibleexpressiontree 无法执行的表达式运算
Lvaluerequired 需要左值
Macroargumentsyntaxerror 宏参数语法错误
Macroexpansiontoolong 宏的扩展以后