precompile header inclusion in Visual studio
Hi As we know , we generally use stdafx.h as pre compiled header in visual studio for fast compilation. For my visual studio project, C/C++ ---> Precompiled Header property is set as Use (/Yu) with stdafx.h... My project is working fine as I have included stdafx.h in my all cpp files.. Problem is when I try to include two files one .h and another .cpp into my project... These two files let's assume a.h and a.cpp are from third party and should not be changed except to use it in solution... After including these two files , I am getting unexpected error of inclusion of stdafx.h into a.cpp...... How to overcome this error ? I don't want to change precompile header option from property page and also don't want to include stdafx.h into my a.cpp Am I asking for something weird ? If so, I am also confused... The third party who has provided those a.cpp and a.h have provided me sample project for reference... They neither have changed precompile option nor have included stdafx.h into a.cpp... Plz help