`
ruilinruirui
  • 浏览: 1046878 次
文章分类
社区版块
存档分类
最新评论

编译程序中问题“fatal error C1010: unexpected end of file while looking for precompiled header directive

 
阅读更多

编译出现问题:unexpectedendoffilewhilelookingforprecompiledheaderdirective

解决方案:

需要在文件头上添加一句:
#include"stdafx.h"

这个文件定义了源程序为C++格式。

否则文件需要保存为.C格式

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics