error C2850: 'PCH header file'

error C2850: 'PCH header file' : only allowed at file scope; may not be in a nested construct

这种错误一般是大意导致的,比如你的类声明的后面忘了分号, 或者大括号不配对引起的

原文地址:https://www.cnblogs.com/GnagWang/p/1874677.html