首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

fatal error C1010: unexpected end of file while looking for precompiled header.

2012-02-29 
fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to a

fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to y
我将c/c++代码从vc6.0转到.net2005中就出现以上情况没有包含头文件stdafx.h的错误,具体原因是什么。



[解决办法]
工程需要重建吧
[解决办法]
工程--> 属性---> 配置属性--> C/C++--> 预编译头,
在右边的第一个选项里改为 "不使用预编译头 "
[解决办法]
看看是哪个文件出错,对于预编译头文件,VC 可以对每个文件使用不同的设定,所以检查一下这个出错文件的设定。
[解决办法]
把错误贴以下

热点排行