Search Wiki:
Article Translations
English, Français, Deutsch, Italiano, 한국어, 繁體中文, 简体中文, 日本語, Русский, Português (Brasil)

A Hotfix is a product update package with one or more updated product files that fix a specific product problem.


Please be aware this Hotfix has not gone through full Microsoft product regression testing nor has it been tested in combination with other Hotfixes.

Please carefully review the associated Hotfix KB article to verify the fix is the one needed and there are no known compatibility or installation issues. You may also want to contact a Microsoft Support Professional at

Issue Description

KB946040 : Error message when you compile a Visual C++ 2008 project: "Error C2471: cannot update program database

When you compile a Microsoft Visual C++ 2008 project, you may receive the following error message:
error C2471: cannot update program database
Note This problem occurs in a specific translation unit.
Back to the top

This problem occurs because another problem occurs in a different translation unit.
Back to the top

Additional Information about the issue resolved by this Hotfix can be found in its Knowledge Base article at

Additional Hotfixes
Search the list of all other publicly available Visual Studio and .NET Framework Hotfixes at*
Last edited Jun 13 2008 at 1:29 AM  by StevenMSFT, version 3
koeber wrote  Apr 24 2012 at 2:32 AM  
It doesn't seem to actually work. However switching it from debug mode to release mode seems to solve the problem.
Not an ideal solution though.

Page view tracker