stdafx.h引起的问题
来源:互联网 发布:南京未来网络怎么样 编辑:程序博客网 时间:2024/04/29 22:56
fatal error C1010: unexpected end of file while looking for precompiled header directive
问题详细解释:
致命错误C1010,在寻找预编译指示头文件时,文件未预期结束。就是没有找到预编译指示信息的头文件。
问题一般发生在:
通过添加文件的方式,添加了一些cpp文件到一个MFC的程序,但该cpp文件并不是MFC,是标准C++的。
解决方案1:
右键点击项目工程中的该cpp文件,在菜单Project 》Settings里C++页面的Precomplie Header,设置为第一项:Not using precompiled headers。
解决方案2:
在.cpp文件开头添加包含文件stdafx.h。
#include "stdafx.h"
- stdafx.h引起的问题
- VS 2005 编译遇到的一个头文件 stdafx.h 引起的问题
- 关于stdafx.h 的问题
- VC6 Stdafx.h的问题
- stdafx.h的作用
- stdafx.h 的作用
- stdafx.h的作用
- stdafx.h的作用
- stdafx.h的作用
- stdafx.h的作用
- stdafx.h的作用
- stdafx.h的作用
- stdafx.h的作用
- stdafx.h的作用
- stdafx.h的作用
- stdafx.h的作用
- stdafx.h的作用
- stdafx.h的作用
- 关于云计算
- 那些正在消失的 Flash 网站
- 经典的行转列加合计
- 设置Linux自启动服务
- Webkit编译的学习
- stdafx.h引起的问题
- No.17
- map简单介绍
- Java拾遗之常用小程序
- VC下调试方式简单整理
- 输入法编程之工程配置
- Java做execl导入数据库
- Grails实用语法
- 超时时间已到。在操作完成之前超时时间已过或服务器未响应