﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-hnu520</title><link>http://www.cppblog.com/zjhnu520/</link><description>#zj&amp;Vc++</description><language>zh-cn</language><lastBuildDate>Tue, 09 Jun 2026 20:29:44 GMT</lastBuildDate><pubDate>Tue, 09 Jun 2026 20:29:44 GMT</pubDate><ttl>60</ttl><item><title>新手i debug中最常遇到的问题</title><link>http://www.cppblog.com/zjhnu520/archive/2007/08/03/29324.html</link><dc:creator>张剑</dc:creator><author>张剑</author><pubDate>Fri, 03 Aug 2007 10:40:00 GMT</pubDate><guid>http://www.cppblog.com/zjhnu520/archive/2007/08/03/29324.html</guid><wfw:comment>http://www.cppblog.com/zjhnu520/comments/29324.html</wfw:comment><comments>http://www.cppblog.com/zjhnu520/archive/2007/08/03/29324.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/zjhnu520/comments/commentRss/29324.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/zjhnu520/services/trackbacks/29324.html</trackback:ping><description><![CDATA[<p>1、fatal error C1010: unexpected end of file while looking for precompiled header directive。</p>
<p>　　寻找预编译头文件路径时遇到了不该遇到的文件尾。(一般是没有#include "stdafx.h")</p>
<p>　　2、fatal error C1083: Cannot open include file: 'R&#8230;&#8230;.h': No such file or directory</p>
<p>　　不能打开包含文件&#8220;R&#8230;&#8230;.h&#8221;：没有这样的文件或目录。</p>
<p>　　3、error C2011: 'C&#8230;&#8230;': 'class' type redefinition</p>
<p>　　类&#8220;C&#8230;&#8230;&#8221;重定义。</p>
<p>　　4、error C2018: unknown character '0xa3'</p>
<p>　　不认识的字符'0xa3'。(一般是汉字或中文标点符号)</p>
<p>　　5、error C2057: expected constant expression</p>
<p>　　希望是常量表达式。(一般出现在switch语句的case分支中)</p>
<p>　　6、error C2065: 'IDD_MYDIALOG' : undeclared identifier</p>
<p>　　&#8220;IDD_MYDIALOG&#8221;：未声明过的标识符。</p>
<p>　　7、error C2082: redefinition of formal parameter 'bReset'</p>
<p>　　函数参数&#8220;bReset&#8221;在函数体中重定义。</p>
<p>　　8、error C2143: syntax error: missing ':' before '{'</p>
<p>　　句法错误：&#8220;{&#8221;前缺少&#8220;;&#8221;。</p>
<p>　　9、error C2146: syntax error : missing ';' before identifier 'dc'</p>
<p>　　句法错误：在&#8220;dc&#8221;前丢了&#8220;;&#8221;。</p>
<p>　　10、error C2196: case value '69' already used</p>
<p>　　值69已经用过。(一般出现在switch语句的case分支中)<br>11、error C2509: 'OnTimer' : member function not declared in 'CHelloView'</p>
<p>　　成员函数&#8220;OnTimer&#8221;没有在&#8220;CHelloView&#8221;中声明。</p>
<p>　　12、error C2511: 'reset': overloaded member function 'void (int)' not found in 'B'</p>
<p>　　重载的函数&#8220;void reset(int)&#8221;在类&#8220;B&#8221;中找不到。</p>
<p>　　13、error C2555: 'B::f1': overriding virtual function differs from 'A::f1' only by return type or calling convention</p>
<p>　　类B对类A中同名函数f1的重载仅根据返回值或调用约定上的区别。</p>
<p>　　14、error C2660: 'SetTimer' : function does not take 2 parameters</p>
<p>　　&#8220;SetTimer&#8221;函数不传递2个参数。</p>
<p>　　15、warning C4035: 'f&#8230;&#8230;': no return value</p>
<p>　　&#8220;f&#8230;&#8230;&#8221;的return语句没有返回值。</p>
<p>　　16、warning C4553: '= =' : operator has no effect; did you intend '='?</p>
<p>　　没有效果的运算符&#8220;= =&#8221;;是否改为&#8220;=&#8221;?</p>
<p>　　17、warning C4700: local variable 'bReset' used without having been initialized</p>
<p>　　局部变量&#8220;bReset&#8221;没有初始化就使用。</p>
<p>　　18、error C4716: 'CMyApp::InitInstance' : must return a value</p>
<p>　　&#8220;CMyApp::InitInstance&#8221;函数必须返回一个值。</p>
<p>　　19、LINK : fatal error LNK1168: cannot open Debug/P1.exe for writing</p>
<p>　　连接错误：不能打开P1.exe文件，以改写内容。(一般是P1.Exe还在运行，未关闭)</p>
<p>　　20、error LNK2001: unresolved external symbol "public: virtual _ _thiscall C&#8230;&#8230;::~C&#8230;&#8230;(void)"</p>
<p>　　连接时发现没有实现的外部符号(变量、函数等)。</p>
<p>　　function call missing argument list 调用函数的时候没有给参数。</p>
<p>　　member function definition looks like a ctor, but name does not match enclosing class 成员函数声明了但没有使用</p>
<p>　　unexpected end of file while looking for precompiled header directive 在寻找预编译头文件时文件意外结束，编译不正常终止可能造成这种情况<br></p>
<img src ="http://www.cppblog.com/zjhnu520/aggbug/29324.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/zjhnu520/" target="_blank">张剑</a> 2007-08-03 18:40 <a href="http://www.cppblog.com/zjhnu520/archive/2007/08/03/29324.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>