VC++6.0中常出现的"unexpected end of file while looking for precompiled header directive"的问题
2010-12-07 10:33
579 查看
如何解决:"fatal error C1010:VC++6.0中常出现的"unexpected end of file while looking for precompiled header directive"的问题?
我想大家在VC6.0中经常回遇到这样的问题,如何解决呢?1、看看是否缺少“;”,“}”
隐藏得深的是宏、.h文件的问题就要费点心思了
2、一定是你在类的部分定义被删除了,M$在每个类中定义一些特殊的常量,是成对的,如下:
.h:
#if !defined(AFX_CHILDFRM_H__54CA89DD_BA94_11D4_94D7_0010B503C2EA__INCLUDED_)
#define AFX_CHILDFRM_H__54CA89DD_BA94_11D4_94D7_0010B503C2EA__INCLUDED_
.......
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAINFRM_H__54CA89DB_BA94_11D4_94D7_0010B503C2EA__INCLUDED_)
你可以新建一个类,然后把这些拷贝过去或补上就可以了。
3、在头部加入 #include "stdafx.h"
4、在CPP文件第一行加上#include "stdafx.h"。
或者Rebuild All.
5、
(1). [Project] - [Settings] - [C/C++] - [Category]
(2). 选择 [Precomplied Headers]
(3). 单选 [Not Using Precomplied Headers]
(4). [OK]
相关文章推荐
- VC++6.0中常出现的"unexpected end of file while looking for precompiled header directive"的问题解决方法
- VC++6.0中常出现的"unexpected end of file while looking for precompiled header directive"的问题?
- VC++6.0中"unexpected end of file while looking for precompiled header directive"的解决方法
- VC++6.0出现“unexpected end of file while looking for precompiled header directive”的解决办法
- 出现此问题的解决方法: unexpected end of file while looking for precompiled header directive
- C语言常见问题:unexpected end of file while looking for precompiled header directive
- unexpected end of file while looking for precompiled header directive的问题
- VC中头文件编译错误:fatal error C1010:“unexpected end of file while looking for precompiled header directive"
- 如何解决unexpected end of file while looking for precompiled header directive的问题
- 如何解决这个问题:unexpected end of file while looking for precompiled header directive,
- 如何解决unexpected end of file while looking for precompiled header directive的问题
- VC++6.0中错误"unexpected end of file while looking for precompiled...
- VC++6.0编译时出现fatal error C1010: unexpected end of file while looking for precompiled header directiv
- vc++6.0 编译时报错Fatal Error C1010 unexpected end of file while looking for precompiled header directive
- 如何解决unexpected end of file while looking for precompiled header directive的问题
- VC++6.0 unexpected end of file while looking for precompiled header directive
- 编译VC++6.0时出出现unexpected end of file while looking for precompiled header directived解决方法
- 如何解决unexpected end of file while looking for precompiled header directive的问题
- VC++6.0中错误"unexpected end of file while looking for precompiled...
- 在编译VC++6.0是,出现fatal error C1010: unexpected end of file while looking for precompiled header directi