編譯錯誤fatal error C1033: cannot open program database '資料夾路徑/debug/vc60.pdb'
--------------------Configuration: Style - Win32 Debug--------------------
Compiling...
StdAfx.cpp
e:/c++expriencement/sunxin/style/stdafx.cpp(0) : fatal error C1033: cannot open program database 'e:/c++expriencement/sunxin/style/debug/vc60.pdb'
Error executing cl.exe.
Style.exe - 1 error(s), 0 warning(s)
關閉編譯器,我刪除了Debug目錄下的所有檔案。用360安全衛士裡面高階工具中的檔案粉碎機粉碎了檔案。
重新開啟編譯器。選擇Projiect-》Setting-》C/C++-》Optimizations->(由Disable(Debug))改成Maximize Speed.出現了新的錯誤:
--------------------Configuration: Style - Win32 Debug--------------------
Compiling...
Command line error D2016 : '/ZI' and '/O2' command-line options are incompatible
Error executing cl.exe.
Style.exe - 1 error(s), 0 warning(s)
再次改成Disable(Debug)重新編譯則成功。
--------------------Configuration: Style - Win32 Debug--------------------
Compiling...
StdAfx.cpp
Compiling...
Skipping... (no relevant changes detected)
MainFrm.cpp
Style.cpp
StyleDoc.cpp
StyleView.cpp
Linking...
Style.exe - 0 error(s), 0 warning(s)