2024年1月2日发(作者:)

常见错误英文AmbiguousoperatorsneedparenthesesAmbiguoussymbol''xxx''ArgumentlistsyntaxerrorArrayboundsmissingArraysizetoolargeBadcharacterinparamenters参考译文不明确的运算需要用括号括起不明确的符号参数表语法错误丢失数组界限符数组尺寸太大参数中有不适当的字符Badfilenameformatin包含命令中文件名格式不正includedirectiveBadifdefdirectivesynataxBadundefdirectivesyntaxBitfieldtoolargeCallofnon-function确编译预处理ifdef有语法错编译预处理undef有语法错位字段太长调用未定义的函数

CalltofunctionwithnoprototypeCannotmodifyaconstobjectCaseoutsideofswitchCasesyntaxerrorCodehasnoeffectCompoundstatementmissing{ConflictingtypemodifiersConstantexpressionrequiredConstantoutofrangeincomparisonConversionmaylosesignificantdigitsConversionofnearpointernotallowedCouldnotfindfile''xxx''Declarationmissing;调用函数时没有函数的说明不允许修改常量对象漏掉了case语句Case语法错误代码不可述不可能执行到分程序漏掉"{"不明确的类型说明符要求常量表达式在比较中常量超出范围转换时会丢失意义的数字不允许转换近指针找不到XXX文件说明缺少";"

DeclarationsyntaxerrorDefaultoutsideofswitchDefinedirectiveneedsanidentifierDivisionbyzeroDostatementmusthavewhileEnumsyntaxerrorEnumerationconstantsyntaxerrorErrordirective:xxxErrorwritingoutputfile说明中出现语法错误Default出现在switch语句之外定义编译预处理需要标识符用零作除数Do-while语句中缺少while部分枚举类型语法错误枚举常数语法错误错误的编译预处理命令写输出文件错误Expressionsyntaxerror表达式语法错误Extraparameterincall调用时出现多余错误FilenametoolongFunctioncallmissingFuctiondefinitionoutofplace文件名太长函数调用缺少右括号函数定义位置错误

FuctionshouldreturnavalueGotostatementmissinglabelHexadecimaloroctalconstanttoolarge函数必需返回一个值Goto语句没有标号16进制或8进制常数太大Illegalcharacter''x''非法字符xIllegalinitializationIllegaloctaldigitIllegalpointersubtractionIllegalstructureoperationIllegaluseoffloatingpointIllegaluseofpointerImproperuseofatypedefsymbolIn-lineassemblynotallowedIncompatiblestorageclass非法的初始化非法的8进制数字非法的指针相减非法的结构体操作非法的浮点运算指针使用非法类型定义符号使用不恰当不允许使用行间汇编存储类别不相容

Incompatibletypeconversion不相容的类型转换Incorrectnumberformat错误的数据格式IncorrectuseofdefaultInvalidindirectionInvalidpointeradditionIrreducibleexpressiontreeLvaluerequiredMacroargumentsyntaxerrorMacroexpansiontoolongMismatchednumberofparametersindefinitionMisplacedbreakMisplacedcontinue此处不应出现break语句此处不应出现continue语句定义中参数个数不匹配Default使用不当无效的间接运算指针相加无效无法执行的表达式运算需要逻辑值0或非0值宏参数语法错误宏的扩展以后太长Misplaceddecimalpoint此处不应出现小数点Misplacedelif不应编译预处理elif

directiveMisplacedelseMisplacedelsedirectiveMisplacedendifdirectiveMustbeaddressableMusttakeaddressofmemorylocationNodeclarationforfunction''xxx''NostackNotypeinformation/没有类型信息Non-portablepointerassignmentNon-portablepointercomparisonNon-portablepointerconversionNotavalidexpressionformattype此处不应出现else此处不应出现编译预处理else此处不应出现编译预处理endif必须是可以编址的必须存储定位的地址没有函数xxx的说明缺少堆栈缺少堆栈不可移动的指针(地址常数)赋值不可移动的指针(地址常数)比较不可移动的指针(地址常数)转换不合法的表达式格式

NotanallowedtypeNumericconstanttoolargeOutofmemoryParameter''xxx''isneverusedPointerrequiredonleftsideof->不允许使用的类型数值常太大内存不够用能数xxx没有用到符号->的左边必须是指针Possibleuseof''xxx''在定义之前就使用了xxx(警beforedefinitionPossiblyincorrectassignmentRedeclarationof''xxx''Redefinitionof''xxx''isnotidenticalRegisterallocationfailureRepeatcountneedsanlvalueSizeofstructureorarraynotknown告)赋值可能不正确重复定义了xxxxxx的两次定义不一致寄存器定址失败重复计数需要逻辑值结构体或数给大小不确定

Statementmissing;StructureorunionsyntaxerrorStructuresizetoolarge语句后缺少";"结构体或联合体语法错误结构体尺寸太大Subscriptingmissing]下标缺少右方括号Superfluous&withfunctionorarraySuspiciouspointerconversionSymbollimitexceededToofewparametersincallToomanydefaultcasesToomanyerrororwarningmessages函数或数组中有多余的"&"可疑的指针转换符号超限函数调用时的实参少于函数的参数不Default太多(switch语句中一个)错误或警告信息太多英文Toomanytypeindeclaration参考译文说明中类型太多

ToomuchautomemoryinfunctionToomuchglobaldatadefinedinfileTwoconsecutivedotsTypemismatchinparameterxxxTypemismatchinredeclarationof''xxx''Unabletocreateoutputfile''xxx''Unabletoopenincludefile''xxx''Unabletoopeninputfile''xxx''Undefinedlabel''xxx''Undefinedstructure''xxx''Undefinedsymbol''xxx''Unexpectedendoffileincommentstartedonlinexxx函数用到的局部存储太多文件中全局数据太多两个连续的句点参数xxx类型不匹配xxx重定义的类型不匹配无法建立输出文件xxx无法打开被包含的文件xxx无法打开输入文件xxx没有定义的标号xxx没有定义的结构xxx没有定义的符号xxx从xxx行开始的注解尚未结束文件不能结束

UnexpectedendoffileinconditionalstartedonlinexxxUnknownassembleinstructionUnknownoptionUnknownpreprocessordirective:''xxx''UnreachablecodeUnterminatedstringorcharacterconstantUserbreakVoidfunctionsmaynotreturnavalue从xxx开始的条件语句尚未结束文件不能结束未知的汇编结构未知的操作不认识的预处理命令xxx无路可达的代码字符串缺少引号用户强行中断了程序Void类型的函数不应有返回值Wrongnumberofarguments调用函数的参数数目错''xxx''notanargument''xxx''notpartofstructurexxxstatementmissing(xxxstatementmissing)xxxstatementmissing;xxx不是参数xxx不是结构体的一部分xxx语句缺少左括号xxx语句缺少右括号xxx缺少分号

xxx''declaredbutneverusedxxx''isassignedavaluewhichisneverusedZerolengthstructure说明了xxx但没有使用给xxx赋了值但未用过结构体的长度为零