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.


  1. Right click the project, go to properties -> configuration properties -> c/c++ -> precompiled headers.

  2. Change the value from create/use precompiled header to Create Precompiled Header (/Yc), in the right side window.

  3. Rebuild the project, and it should work.

Remember to include stdafx.h file in all .cpp files, at the FIRST Line of the code