C语言常见问题:unexpected end of file while looking for precompiled header directive

论坛 期权论坛 编程之家     
选择匿名的用户   2021-6-2 17:07   1099   0


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

分析:工程头文件处理的错误。

解决:1、右键点工程名,选设置,然后选c/c++属性页,再选catagory选单中选 precompiled header ,将选项置成no use 或者autometic

2、如果使用的是Win32工程,可能就是错误文件没有包含:#include "stdafx.h" ,添加该包含即可。

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP