Error C2859: Recreate the precompiled header error
When compile C/C++ code, I got this kind of errors:
error C2859: … … vc90.idb is not the idb file that was used when this precompiled header was created, recreate the precompiled header
It means you need to recreate the precompiled header.
Solution:
-
Right click the project, go to
properties
->configuration properties
->c/c++
->precompiled headers
. -
Change the value from
create/use precompiled header
toCreate Precompiled Header (/Yc)
, in the right side window. -
Rebuild the project, and it should work.
Remember to include stdafx.h
file in all .cpp files, at the FIRST Line of the code