产品中心

新闻邮件订阅

IT要闻
产品评测
技巧推荐
社区精华
请输入您的e-mail地址:

使用技巧 - How to Use

 您的位置:首页 > 使用技巧 > 编程 软件
常见的20种VC++编译错误信息
佚名 blog | 2007-04-01 08:33:10 |
  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)"
    连接时发现没有实现的外部符号(变量、函数等)。
 
 
 
推荐】【打印
 
相关文章
· VC++无闪烁刷屏技术实现 2006-07-26 09:34:43
· VC++工具栏加平面组合框控件 2006-06-02 10:26:26
· VC++ Windows回收站文件存取 2006-06-02 10:25:26
 
 
网友评论
以下网友评论只代表网友个人观点,不代表PCWorld观点
发表内容:

SPONSORED LINKS

联想M930一体机体验专区
5月15日,联想率先在喷墨一体机市场上发布了针对soho用户和小型办公类市场为主打……
联想外设数码业务百城巡展
传承奥运品质 倾心百城服务
爱普生3LCD联盟
了解3LCD已经汇集了3LCD技术精英的联盟站点
全方位深入的存储资讯
从企业级到个人应用,从业界动态到大型评测,带您尽览存储风云
享受高质量低成本的照片打印
联想4330照片打印机,打印成本仅需1元
尚品·人生网
尚品·人生网,让优质生活与事业和谐平衡
中华部落阁
加入中华部落阁,记录你的新生活。
润眼电脑“3H高清润眼屏”
免费体验,火热报名,海尔润眼电脑系列。
万元级彩色激光一体机
爱普生彩色激光多功能一体机CX11系列专区
联想投影机全球同一品质
新联想一周年庆典 新投影共享全球同一品质
关于我们投稿指南 公告 注册 诚信与安全 规则与政策 友情链接 网站地图 IDG全球资源 业务联系 68130909-6865 《微电脑世界》2009刊例
Copyright(c) 2000-2008 pcworld.com.cn. All Rights Reserved. 京ICP备 05038969 号