In Visual Studio 2015, I have a C++/CLI project with the following error:
"fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?"
I turned off precompiled headers in the project options but it keeps giving me the same error. I even removed the name of the precompiled header file but it still says "stdafx.h"
.
Edit: Yes, every source file indivuduially doesn't have it enabled.
Ok. Hans Passant found out what was happening:
The build configuration that I used to build it still had precompiled headers enabled.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With