【转】fatal error C1010: unexpected end of file解决方案
来源:互联网 发布:东华软件股份公司股票 编辑:程序博客网 时间:2024/04/27 18:50
在编译VC++6.0是,出现
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"
http://www.cunyoulu.com/xinxi/showxinxi.php?xinxiid=838
- 【转】fatal error C1010: unexpected end of file解决方案
- fatal error C1010: unexpected end of file解决方案
- fatal error C1010: unexpected end of file
- 编译程序中出现“fatal error C1010: unexpected end of file”
- 编译程序中出现“fatal error C1010: unexpected end of file”
- fatal error C1010: unexpected end of file解决方案 本文来自: 村友录 http://www.cunyoulu.com/
- 【转载】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
- 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
- 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
- 如何解决:fatal error C1010: unexpected end of file while looking for precompile
- 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 头文件设置
- [转] 做一个让人欣赏的女子
- ARM嵌入式软件编程经验谈
- 使用表单创建交互式网页
- 布局文档弄完了
- 开始
- 【转】fatal error C1010: unexpected end of file解决方案
- osi模型
- 这一周
- c5
- 【转】c语言静态变量和静态函数
- WPF程序设计指南读书笔记(0)
- 实习training感想
- 实习training感想
- WPF程序设计读书笔记(1-1)