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。

猜你喜欢

转载自www.cnblogs.com/indifferent/p/11842548.html