C语言常见编译错误及分析 您所在的位置:网站首页 c4716错误 C语言常见编译错误及分析

C语言常见编译错误及分析

2024-03-22 15:10| 来源: 网络整理| 查看: 265

C语言常见编译错误及分析 1、fatal error C1003: error count exceeds number; stopping compilation2、fatal error C1004: unexpected end of file found3、fatal error C1083: Cannot open include file: 'xxx': No such file or directory4、fatal error C1903: unable to recover from previous error(s); stopping compilation5、error C2001: newline in constant6、error C2006: #include expected a filename, found 'identifier'7、error C2007: #define syntax8、error C2008: 'xxx' : unexpected in macro definition9、error C2009: reuse of macro formal 'identifier'10、error C2010: 'character' : unexpected in macro formal parameter list11、error C2014: preprocessor command must start as first nonwhite space12、error C2015: too many characters in constant13、error C2017: illegal escape sequence14、error C2018: unknown character '0xhh'15、error C2019: expected preprocessor directive, found 'character'16、error C2021: expected exponent value, not 'character'17、error C2039: 'identifier1' : is not a member of 'identifier2'18、error C2041: illegal digit 'x' for base 'n'19、error C2048: more than one default20、error C2050: switch expression not integral21、error C2051: case expression not constant22、error C2052: 'type' : illegal type for case expression23、error C2057: expected constant expression24、error C2058: constant expression is not integral25、error C2059: syntax error : 'xxx'26、error C2064: term does not evaluate to a function27、error C2065: 'xxx' : undeclared identifier28、error C2078: too many initializers29、error C2082: redefinition of formal parameter 'xxx'30、error C2084: function 'xxx' already has a body31、error C2086: 'xxx' : redefinition32、error C2087: '' : missing subscript33、error C2100: illegal indirection34、error C2105: 'operator' needs l-value35、error C2106: 'operator': left operand must be l-value36、error C2110: cannot add two pointers37、error C2117: 'xxx' : array bounds overflow38、error C2118: negative subscript or subscript is too large39、error C2133: 'xxx' : unknown size40、error C2137: empty character constant。41、error C2143: syntax error : missing 'token1' before 'token2'42、error C2146: syntax 4error : missing 'token1' before identifier 'identifier'43、error C2144: syntax error : missing ')' before type 'xxx'44、error C2181: illegal else without matching if45、error C2196: case value '0' already used46、error C2296: '%' : illegal, left operand has type 'float'47 error C2297: '%' : illegal, right operand has type 'float'48、error C2371: 'xxx' : redefinition; different basic types49、error C2440: '=' : cannot convert from 'char [2]' to 'char'50、error C2447: missing function header (old-style formal list?)51、error C2448: '' : function-style initializer appears to be a function definition52、error C2450: switch expression of type 'xxx' is illegal53、error C2466: cannot allocate an array of constant size 054、error C2601: 'xxx' : local function definitions are illegal55、error C2632: 'type1' followed by 'type2' is illegal56、error C2660: 'xxx' : function does not take n parameters57、error C2664: 'xxx' : cannot convert parameter n from 'type1' to 'type2'58、error C2676: binary '' : 'class ostream_withassign' does not define this operator or a conversion to a type acceptable to the predefined operator59、error C4716: 'xxx' : must return a value60、fatal error LNK1104: cannot open file "Debug/Cpp1.exe"61、fatal error LNK1168: cannot open Debug/Cpp1.exe for writing62、fatal error LNK1169: one or more multiply defined symbols found63、error LNK2001: unresolved external symbol _main64、error LNK2005: _main already defined in Cpp1.obj65、warning C4003: not enough actual parameters for macro 'xxx'66、warning C4067: unexpected tokens following preprocessor directive - expected a newline67、warning C4091: '' : ignored on left of 'type' when no variable is declared68、warning C4101: 'xxx' : unreferenced local variable69、warning C4244: '=' : conversion from 'type1' to 'type2', possible loss of data70、warning C4305: 'initializing' : truncation from 'const double' to 'float'71、warning C4390: ';' : empty controlled statement found; is this the intent?72、warning C4508: 'xxx' : function should return a value; 'void' return type assumed73、warning C4552: 'operator' : operator has no effect; expected operator with side-effect74、warning C4553: '==' : operator has no effect; did you intend '='?75、warning C4700: local variable 'xxx' used without having been initialized76、warning C4715: 'xxx' : not all control paths return a value77、warning C4723: potential divide by 078、warning C4804: '>”、“


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有