C2471 Visual Studio error fixed by removing precompiled headers

by LCH on March 31, 2008

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.

Please Share This Blog Entry:
  • FriendFeed
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks

Comments on this entry are closed.

Additional comments powered by BackType

Previous post:

Next post: