首页 > 其他 > 详细

解决错误 fatal error C1010: unexpected end of file while looking for precompiled head

时间:2019-01-01 19:11:46      阅读:231      评论:0      收藏:0      [点我收藏+]

 

在编译VS时候,出现fatal error C1010: unexpected end of file while looking for precompiled head。

 技术分享图片

 

问题详细解释:致命错误C1010,在寻找预编译指示头文件时,文件未预期结束。就是没有找到预编译指示信息的问文件。

顾名思义就是预编译因为缺少了预编译文件而失败。解决方法显然可以取消预编译,或者帮助编译器找到预编译文件。

故解法:

1.右键单击项目工程中的cpp文件,在菜单Project->Settings->C/C++->Precompile Header,设置为第一项:Not using precompile headers。

2.在.cpp文件开头添加包含文件stdafx.h。 #include"stdafx.h"

解决错误 fatal error C1010: unexpected end of file while looking for precompiled head

原文:https://www.cnblogs.com/sea-stream/p/10205529.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!