编译出现错误:cannot open program database 目录/debug/vc60.pdb的字样,而在别的机器上同样的环境却没有问题,上网搜了若干,说是rebuild all,或者clean->rebuild,或者删除debug目录rebuild,甚而更改setting->c/c++->Precompiled Headers也由Use precompiled header file(.pch)改为选Not using precompiled headers均不管用.若干贴子均无结果.
解决:
原来只需修改目录,因为我原来的目录路径中含有中文,不被识别,全改为英文即可.不过在中文版的xp上不存在此现象.
------------------------------------------------
把debub目录下的文件全部删除。特别是vc60.pdb
------------------------------------------------
vc6.0调试的时候总是弹出Find symbols对话框,对话框中显示“Please enter the path for vc60.pdb.”然后让你给出路径,我给出自己的debug路径,对话框下部会说“A file with the correct name was found in this directory,but it is not the correct one.”如果选择按钮 “结束”,程序会进入调试,不会有问题。
这个问题解决办法:
1. 去掉所有的断点之后rebuild all。
2. clean->rebuilt
------------------------------------------------

被折叠的 条评论
为什么被折叠?



