VS 2019 引入新的header文件和cpp文件,出现如下错误
fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?
解决方案:
在你的.cpp文件的第一行,一定要是第一行引入 #include "stdafx.h" 这一行代码
VS 2019 引入新的header文件和cpp文件,出现如下错误
fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?
解决方案:
在你的.cpp文件的第一行,一定要是第一行引入 #include "stdafx.h" 这一行代码