⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subject_21932.htm

📁 一些关于vc的问答
💻 HTM
字号:
<p>
序号:21932 发表者:anyh 发表日期:2002-11-21 12:49:07
<br>主题:How to get over fatal erro C1010
<br>内容:I use file--&gt;new to create a head file and a cpp file in my proj,<BR>in head file&nbsp;&nbsp;I defined a class of myself:<BR><BR>class Mycalss<BR>{<BR><BR>};<BR><BR>then create a cpp file:<BR><BR>#include Mycalss.h<BR><BR>when I compiled ,the error C1010 occured
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
回复者:bird 回复日期:2002-11-21 12:51:21
<br>内容:#include "Mycalss.h"
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:CDMA2000 回复日期:2002-11-21 12:51:42
<br>内容:在头文件加上#include "stdafx.h"就OK了
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:anyh 回复日期:2002-11-21 12:55:17
<br>内容:Sorry, I wrote it wrong at here, it should be #include "Mycalss.h".<BR><BR>I have added #include "stdafx.h", but error still occured
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:CDMA2000 回复日期:2002-11-21 12:58:56
<br>内容:不可能啊!看看你的类声明末尾有无“;"<BR><BR><BR>Fatal Error C1010<BR>unexpected end of file while looking for precompiled header directive<BR><BR>A precompiled header was specified, but it did not contain a precompiled header directive.<BR><BR>This error can be caused by specifying an incorrect file as a header file, or by specifying an include file with the /Yu (Use Precompiled Header) command line option that is not listed in the source file as an include file.<BR>
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:Norton AntiVirus 回复日期:2002-11-21 13:18:35
<br>内容:#include "stdafx.h"<BR>#include "MyClass.h"<BR><BR>#include "stdafx.h"最好放在最前面
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -