C1010 unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source

提示说是预编译出现问题,提示添加头文件stdafx.h,但是添加了也会继续有其他错误
解决方法:
  在菜单Project->Properties(或者直接快捷键Alt+F7)->C/C++->Precompile Header,设置为第一项:Not using precompile headers。

posted @ 2019-11-12 15:46  不知起什么名字  阅读(256)  评论(0编辑  收藏  举报