无法创建PDB文件 [英] Unable to create PDB file

查看:168
本文介绍了无法创建PDB文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于某种原因,这个错误今天开始在我的一个项目中弹出.

For some reason this error started popping up today on one of my projects.

错误1无法写入输出文件 'C:\ MyProject \ Release \ MyProject.pdb': 未指定错误

Error 1 Unable to write to output file 'C:\MyProject\Release\MyProject.pdb': Unspecified error

如果我进入高级编译选项并将其更改为不生成和调试信息,则我的项目可以正常编译.

If I go into advanced compile options and change it to not generate and debug info, my project compiles fine.

我尝试将Release文件夹上的权限设置为所有人的完全权限,因此我认为这不是权限问题.另外,我在日志文件中看不到任何可以向我提供有关该问题的更多信息的东西.

I have tried setting the permissions on the Release folder to full for everyone, so I would assume it's not a permissions issue. Also, I don't see anything in my log files that would provide me with more information about the issue.

有人知道为什么会开始显示此错误或解决此错误的方法吗?

Does anyone know why this error would just start showing up or a way to fix it?

谢谢.

更新:我已经重新启动了计算机,几次重新启动了VS,甚至完全删除了发生问题的现有OBJ文件.它仍然给我同样的错误.

Update: I have rebooted my machine, restarted VS several times and have even completely deleted the existing OBJ file where the issue is happening. It's still giving me the same error.

这是一个简单的项目解决方案,上周才运行良好. VS试图构建PDB文件似乎是一个问题,因为我可以毫无问题地将它们从Release和Debug文件夹中删除.当我尝试重建它们时,VS将开始创建文件(大小约为1.4MB),但仍然出现错误.

This is a simple one project solution that was working fine just last week. It appears to be an issue with VS trying to build the PDB file because I can delete them out of the Release and Debug folders without issue. When I try rebuilding them VS will start creating the file (about 1.4MB is size) but I still get the error.

推荐答案

在这个墙上敲了一下我的头并仔细检查了源代码控制以尝试返回工作副本后,结果发现PDB文件根本不是问题.有人删除了一个源文件,当我试图找到该文件来创建调试信息时,该文件导致VS停止运行.

After banging my head on the wall for a while on this one and digging through source control to try to get back to a working copy, it turned out that the PDB file wasn't the issue at all. Someone had deleted a source file which was causing VS to choke when I tried to find that file to create the debug information.

因此,如果有人遇到此错误并且无法找出错误,请确保您没有在某处丢失源文件.

So if anyone comes across this error and can't figure it out, make sure that you aren't missing a source file somewhere.

如果VS告诉我文件丢失,而不仅仅是告诉我创建PDB文件有未指定的错误,那将非常有帮助.

It would have been very helpful if VS would have told me that file is missing rather than just telling me it had an unspecified error creating the PDB file.

谢谢.

这篇关于无法创建PDB文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆