往c++项目中添加文件时遇到了这个错误
C1010 unexpected end file of file while looking for precompiled header. Did you forget to add #include "XXXXX.h" to your source?
项目属性设置了预编译头文件,报错位置为cpp文件
发现问题出现在cpp文件的属性中,cpp设置了C/C++ compiler,改为does not participate in build后项目成功编译了