unexpected end of file while looking for precompiled header directive
来源:互联网 发布:curl不能获取网页源码 编辑:程序博客网 时间:2024/05/16 18:47
转自:http://zhidao.baidu.com/question/99669159.html
如何解决:"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]ps:请重点注意1,2条,我就是重建工程,完全重做一遍搞定的!
- 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
- 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
- 【转载】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的问题
- 【转载】fatal error C1010: unexpected end of file while looking for precompiled header directive
- 一个编译错误 fatal error C1010: unexpected end of file while looking for precompiled header directive
- fatal error C1010: unexpected end of file while looking for precompiled header directive 错误
- 如何解决unexpected end of file while looking for precompiled header directive的问题
- fatal error C1010: unexpected end of file while looking for precompiled header directive该如何解决
- fatal error C1010: unexpected end of file while looking for precompiled header directive
- fatal error C1010: unexpected end of file while looking for precompiled header directive
- 黑马程序员---类加载器
- asp.net后台cs中的JSON格式变量在前台Js中调用方法!(前后台实例!)
- 面向对象一(类、对象、变量、构造函数、构造代码块、this、static)
- 黑马程序员-JAVA基础加强-枚举
- vc++ 编译错误“no appropriate default constructor available”解决方法
- unexpected end of file while looking for precompiled header directive
- boost asio中 error C1189: #error : WinSock.h has already been included 的问题
- 什么是C++成员初始化列表
- C++读写文件
- fstream的使用方法介绍
- fstream打开一个文件时如何清空文件的内容
- fstream 错误 empty character constant
- MySQL的备份和恢复
- 在jsp中设置由OGNL读取的属性