Compilation fails randomly: “cannot open program database”

后端 未结 12 1683
渐次进展
渐次进展 2020-12-08 00:52

During a long compilation with Visual Studio 2005 (version 8.0.50727.762), I sometimes get the following error in several files in some project:

fatal erro         


        
12条回答
  •  被撕碎了的回忆
    2020-12-08 01:43

    This happens to me consistently if I Ctrl+Break to cancel a build (vs2015). There's some process that isn't shut down properly. I went on a rampage "End Tasking" ms/vs related processes (look for duplicates) and my build worked again. A restart would probably work too. As would moving to gnu binutils.

    Annoyingly unlocker tools don't report any processes locking the file, windows doesn't let me delete the .pdb but I can rename it. My guess is two processes jump in at the same time during a build.

提交回复
热议问题