It was needed because I deleted my .idb file and the error message told me to rebuild the precompiled headers.
-
It would be better if you supplied complete error message here as is. – user7860670 Jun 03 '17 at 06:49
2 Answers
Precompiled header produce .pdb
file, while according to documentation .idb
file is:
The state file, containing dependency information between source files and class definitions, which can be used by the compiler during minimal rebuild and incremental compilation. Use the /Fd compiler option to specify the name of the .idb file. See /Gm (Enable Minimal Rebuild) for more information.
To rebuild a project you can go to Main menu
-> Build
-> Rebuild
. To rebuild just precompiled header you can open context menu in Solution Explorer
for precompiled header .cpp
file and chose Compile
item.

- 35,849
- 4
- 58
- 84
If the precompiled header file is generated at runtime, something like
$(IntDir)$(TargetName).pch
One additional method is to:
- Locate the .pch file in the output folder.
- Delete it.
- Do a regular build on the project.
This could be attractive when there are build dependencies and you don't want to wait for all of the projects to rebuild.

- 1
- 1