所以我一直在尝试学习 cpp 并且我正在编写一个程序,当我尝试构建解决方案时,它给出了一个错误提示
unexpected end of file while looking for precompiled header. Did you forget to add #include "pch.h" to your source?
然后我把它包含进来,我得到了同样的错误,还有另一种说法
cannot open source file pch.h
最佳答案
如果您是 c++ 新手,一个选项是在项目设置中关闭预编译头文件。
关于c++ - 如何使用 pch.h 修复意外的文件结尾错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54101922/