none
error C2471: cannot update program database

    Question

  • I create a new project and create some .h and .cpp files to this project, but when I build the solution by clicking "Ctrl+shift+B", there are two error messages displayed in the OutPut window(PS: it works fine a few minutes ago): 1>------ Build started: Project: Chpater7, Configuration: Debug Win32 ------ 1>Compiling... 1>Chpater7.cpp 1>c:\documents and settings\zhanzhex\my documents\visual studio 2008\projects\chpater7\chpater7\chpater7.cpp(4) : error C2471: cannot update program database 'c:\documents and settings\zhanzhex\my documents\visual studio 2008\projects\chpater7\chpater7\debug\vc90.pdb' 1>c:\documents and settings\zhanzhex\my documents\visual studio 2008\projects\chpater7\chpater7\chpater7.cpp(4) : fatal error C1083: Cannot open program database file: 'c:\documents and settings\zhanzhex\my documents\visual studio 2008\projects\chpater7\chpater7\debug\vc90.pdb': No such file or directory 1>Build log was saved at "file://c:\Documents and Settings\zhanzhex\My Documents\Visual Studio 2008\Projects\Chpater7\Chpater7\Debug\BuildLog.htm" 1>Chpater7 - 2 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== I located the file vc90.pdb and it is indeed under the path c:\documents and settings\zhanzhex\my documents\visual studio 2008\projects\chpater7\chpater7\debug\ so, could you please tell me how to fix this issue?
    Tuesday, May 3, 2011 10:27 AM

Answers

  • That is not terribly uncommon in VC2008 (unfortunately).  Try deleting the PDB and building again.
    • Marked as answer by zhexin Tuesday, May 3, 2011 3:25 PM
    Tuesday, May 3, 2011 2:32 PM

All replies