C++ – How to fix a C1010 error without turning off precompiled headers

cprecompiled-headersvisual studio

So,
I have to use precompiled headers in my VS 2005 project. Now I have a shared source file that does not have a #include "stdafx.h"… How can I include the shared source file in my project without adding stdafx.h to the top of the source file and without turning off precompiled headers??

Best Answer

File properties -> C/C++ -> Precompiled Headers -> Create/Use precompiled headers -> Not using ...