C2471 Visual Studio error fixed by removing precompiled headers

I inherited a medium sized C++ app last week that I couldn’t get to compile with Visual Studio 2008. The compiler kept spitting out the error “C2471: cannot update program database”.

According to Microsoft’s online knowledge base they’ve been aware of the problem and working on a fix. As of last week there wasn’t a hotfix available for download, but this morning there is. You can get it here: http://support.microsoft.com/kb/946040.

Personally, I haven’t tried the fix yet, because I came up with another workaround that will get me by for now. What did I do? I disabled precompiled headers in the project settings. That seemed to do the trick.

Leave a Reply

You must be logged in to post a comment.