




已阅读5页,还剩3页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
最常见的20种Visual C+编译错误信息集合整理 1、fatal error C1010: unexpected end of file while looking for precompiled header directive.寻找预编译头文件路径时遇到了不该遇到的文件尾。(一般是没有#include stdafx.h)2、fatal error C1083: Cannot open include file: R。h: No such file or directory不能打开包含文件“R。h”:没有这样的文件或目录。3、error C2011: C: class type redefinition类“C”重定义。4、error C2018: unknown character 0xa3不认识的字符0xa3.(一般是汉字或中文标点符号)5、error C2057: expected constant expression希望是常量表达式。(一般出现在switch语句的case分支中)6、error C2065: IDD_MYDIALOG : undeclared identifier“IDD_MYDIALOG”:未声明过的标识符。7、error C2082: redefinition of formal parameter bReset函数参数“bReset”在函数体中重定义。8、error C2143: syntax error: missing : before 句法错误:“”前缺少“;”。9、error C2146: syntax error : missing ; before identifier dc句法错误:在“dc”前丢了“;”。10、error C2196: case value 69 already used值69已经用过。(一般出现在switch语句的case分支中)11、error C2509: OnTimer : member function not declared in CHelloView成员函数“OnTimer”没有在“CHelloView”中声明。12、error C2511: reset: overloaded member function void (int) not found in B重载的函数“void reset(int)”在类“B”中找不到。13、error C2555: B:f1: overriding virtual function differs from A:f1 only by return type or calling convention类B对类A中同名函数f1的重载仅根据返回值或调用约定上的区别。14、error C2660: SetTimer : function does not take 2 parameters“SetTimer”函数不传递2个参数。15、warning C4035: f: no return value“f”的return语句没有返回值。16、warning C4553: = = : operator has no effect; did you intend =?没有效果的运算符“= =”;是否改为“=”?17、warning C4700: local variable bReset used without having been initialized局部变量“bReset”没有初始化就使用。18、error C4716: CMyApp:InitInstance : must return a value“CMyApp:InitInstance”函数必须返回一个值。19、LINK : fatal error LNK1168: cannot open Debug/P1.exe for writing连接错误:不能打开P1.exe文件,以改写内容。(一般是P1.Exe还在运行,未关闭)20、error LNK2001: unresolved external symbol public: virtual _ _thiscall C:C(void)连接时发现没有实现的外部符号(变量、函数等)。function call missing argument list 调用函数的时候没有给参数。member function definition looks like a ctor, but name does not match enclosing class 成员函数声明了但没有使用unexpected end of file while looking for precompiled header directive 在寻找预编译头文件时文件意外结束,编译不正常终止可能造成这种情况下面是所有C+ 错误英文及其翻译Argument # missing name 参数#名丢失Argument list syntax error 参数表语法错误Array bounds missing 丢失数组界限符Bad character in paramenters 参数中有不适当的字符Bad file name format in include directive 包含命令中文件名格式不正确Call of non-function 调用未定义的函数Call to function with no prototype 调用函数时没有函数的说明Cannot modify a const object 不允许修改常量对象Case outside of switch Case 出现在switch外Case statement missing Case语句漏掉Case syntax error Case 语法错误Character constant too long 字符常量太长Compound statement missing 分程序漏掉 Conflicting type modifiers 不明确的类型说明符Constant expression required 要求常量表达式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语句中缺少while部分DO while statement missing ( Do while语句中漏掉了符号 (Do while statement missing; Do while语句中掉了分号Duplicate Case Case情况不唯一Enum syntax error 枚举类型语法错误Enumeration constant syntax error 枚举常数语法错误Error directive :xxx 错误的编译预处理命令Error writing output file 写输出文件错误Expression syntax error 表达式语法错误Extra parameter in call 调用时出现多余参数Extra parameter in call to xxxxxx 调用xxxxxxxx函数时出现了多余参数For statement missing ) For语名缺少)For statement missing( For语句缺少(For statement missing; For 语句缺少;Function call missing ) 函数调用缺少右括号Fuction definition out of place 函数定义位置错误Fuction should return a value 函数必需返回一个值Goto statement missing label Goto语句没有标号If statement missing( If语句缺少(If statement missing) If语句缺少)Illegal character x 非法字符x Illegal initialization 非法的初始化Illegal octal digit 非法的8进制数字Illegal pointer subtraction 非法的指针相减Illegal structure operation 非法的结构体操作Illegal use of floating point 非法的浮点运算Illegal use of pointer 指针使用非法Improper use of a typedef symbol 类型定义符号使用不恰当Incompatible storage class 存储类别不相容Incompatible type conversion 不相容的类型转换Incorrect commadn line argument:xxxxxx 不正确的命令行参数:xxxxxxxIncorrect commadn file argument:xxxxxx 不正确的配置文件参数:xxxxxxxIncorrect number format 错误的数据格式Incorrect use of default Default使用不当Initializer syntax error 初始化语法错误Invalid indirection 无效的间接运算Invalid macro argument separator 无效的宏参数分隔符Invalid pointer addition 指针相加无效Irreducible expression tree 无法执行的表达式运算Invalid use of dot 点使用错Lvalue required is assigned a value 需要逻辑值0或非0值Macro argument syntax error 宏参数语法错误Macro expansion too long 宏的扩展太长Mismatched number of parameters in definition 定义中参数个数不匹配Misplaced break 此处不应出现break语句Misplaced continue 此处不应出现continue语句Misplaced decimal point 此处不应出现小数点xxx Misplaced else 此处不应出现else Misplaced else directive 此处不应出现编译预处理else Misplaced endif directive 此处不应出现编译预处理endif Must be addressable 必须是可以编址的Must take address of memory location 必须存储定位的地址No declaration for function xxx 没有函数xxx的说明No file name ending 无文件终止符No file names given 未给出文件名No stack 缺少堆栈No type information 没有类型信息Non-portable pointer assignment 对不可移动的指针(地址常数)赋值Non-portable pointer comparison 不可移动的指针(地址常数)比较Non-portable pointer conversion 不可移动的指针(地址常数)转换Non-protable return type conversion 不可移植的返回类型转换Not a valid expression format type 不合法的表达式格式Not an allowed type 不允许使用的类型Out of memory 内存不够用Parameter xxx is never used 参数xxx没有用到Pointer required on left side of - 符号-的左边必须是指针Possible use of xxx before definition 在定义之前就使用了xxx(警告)Possibly incorrect assignment 赋值可能不正确Redeclaration of xxx 重复定义了xxx Redefinition of xxx is not identical xxx的两次定义不一致Register allocation failure 寄存器定址失败Repeat count needs an lvalue 重复计数需要逻辑值Size of structure or array not known 结构体或数组大小不确定Statement missing ; 语句后缺少; Structure or union syntax error 结构体或联合体语法错误Structure size too large 结构体尺寸太大Subscripting missing 下标缺少右方括号Superfluous & with function or array 函数或数组中有多余的& Suspicious pointer conversion 可疑的指针转换Switch statement missing ( switch 语句缺少(Switch statement missing ) switch 语句缺少)Too few parameters in call 函数调用参数太少Too few parameter in call toxxxxxx 调用xxxxxx时参数太少Too many cases Cases太多Too many decimal points 十进制小数点太多Too many default cases Default太多(switch语句中一个) Too many exponents 阶码太多Too many initializers 初始化太多Too many error or warning messages 错误或警告信息太多Too many storage classes in declaration 说明中存储类太多Too many type in declaration 说明中类型太多Too much auto memory in function 函数用到的自动存储太多Too much global data defined in file 文件中全局数据太多Two consecutive dots 两个连续的点Type mismatch in parameter # 参数#类型不匹配Type mismatch in parameter # in call to XXXXXXX 调用XXXXXXX时参数#类型不匹配Type mismatch in parameter xxx 参数xxx类型不匹配Type mismatch in parameter XXX in call to YYY 调用YYY时参数XXX数型不匹配Type mismatch in redeclaration of xxx xxx重定义的类型不匹配Unable to create output file xxx 无法建立输出文件xxx Unable to create turboc.lnk 不能创建turboc.lnk Unable to execute command xxxxxxxx 不能执行xxxxxxxx命令Unable to open include file xxx 无法打开被包含的文件xxx Unable to open input file xxx 无法打开输入文件xxx Undefined label xxx 没有定义的标号xxx Undefined structure xxx 没有定义的结构xxx Undefined symbol xxx 没有定义的符号xxx Unexpected end of file in comment started on line xxx 源文件在从xxx行开始的注释中意外结束Unexpected end of file in con
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 预应力工程施工进度优化方案
- 光山县2024-2025学年第一学期四年级语文期末学业展示考题及答案
- 农村供水提升工程施工方案
- 2025年机械专业考试试题及答案
- 租赁车间合同范本(含设备搬迁及运输服务)
- 2025年现代汉语下册试题及答案
- 污水处理厂扩建及再生水利用工程建设工程方案
- 房屋租赁合同签订租赁保证金缴纳及退还流程详解
- 零碳循环经济产业园建设项目建设工程方案
- 500MW光伏项目建筑工程方案
- 新能源汽车充电桩工程物资供应措施
- 基于大数据的国际广播媒体发展模式比较分析-洞察阐释
- 税务教育培训经费管理制度
- 心血管考试试题及答案
- DB32-T 5108-2025 科技服务机构星级评定规范
- 医保卫生室管理制度
- T/CI 311-2024风力发电机组高强钢塔架焊接附属件结构疲劳性能评价方法
- 公安计算机试题及答案
- 保安服务台账资料相关表格
- 《肠道菌群》课件
- 《中医药信息学》课件
评论
0/150
提交评论