Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++ Precompiled Header Disabled

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.

like image 815
Void Chicken Avatar asked Dec 24 '22 12:12

Void Chicken


1 Answers

Ok. Hans Passant found out what was happening:

The build configuration that I used to build it still had precompiled headers enabled.

like image 103
Void Chicken Avatar answered Dec 27 '22 02:12

Void Chicken