Today's error series: An unexpected end of file was encountered while searching for precompiled headers. Did you forget to add "#include "stdafx.h"" to the source?

Insert picture description here
No nonsense, dry goods.
Solution:
Step 1: Right-click the cpp file and select properties.
Step 2: Select the precompiled header.
Insert picture description here
Step 3: Set the precompiled header to: Do ​​not use the precompiled header.
Insert picture description here
Step 4: Apply --> Confirm --> Recompile.
Insert picture description here
End:

Sharing is also a way to deepen your understanding of the problem again. It may not be comprehensive, but it is definitely useful and will continue to be improved later~

Guess you like

Origin blog.csdn.net/hwx802746/article/details/113754137