共享文件夹上的 Visual Studio 2010 项目:致命错误 C1033:无法打开程序数据库
我正在 Mac 上的 VMWare 中运行 Windows 7,因为我正在处理跨平台项目。我想将所有平台独立文件保存在同一个文件夹中 - 这就是为什么我想将所有内容组织在 Mac 上的一个文件夹中,并与虚拟机中运行的 Windows 共享。 当我尝试在共享文件夹中编译项目时,我得到
致命错误 C1033:无法打开程序数据库 '\vmware-host\sharedfolders\audio\vst3 sdk\base\win\win32\debug.base_vc9\base_vc9.pdb'
我能够使用 Windows 写入和读取该文件夹上的文件探险家。尝试以管理员身份运行 Visual Studio。没有帮助。
如果我只是将文件夹从共享文件夹复制到本地驱动器,我就可以毫无问题地编译该项目。但复制我的整个项目只是为了进行 Windows 构建并不是一个选择。
有人知道发生了什么事吗?我该如何解决这个问题?
更新:我在 Windows 中禁用了防病毒软件:没有帮助。 然而,一位同事向我推荐了一个解决方法:在 Mac 操作系统下设置 SMB 文件共享并使用 Windows 连接到 samba 共享。令人惊讶的是我能够在 samba 共享上编译该项目。如果有人能解释这个问题,我会很高兴。
I am running Windows 7 inside VMWare on a Mac as I am working on a cross plattform project. I want to keep all my plattform independent files in the same folder - that's why I want to organize everything in a folder on the mac and share it with windows that's running in the VM.
When I try to compile the project in the shared folder, I get
fatal error C1033: cannot open program database '\vmware-host\shared folders\audio\vst3 sdk\base\win\win32\debug.base_vc9\base_vc9.pdb'
I am able to write and read files on that folder using the windows explorer. Did try to run Visual Studio as administrator. Didn't help.
If I just copy my folder from the shared folder to the local drive I am able to compile the project without any problems. But it's not an option to copy my whole project just to make a windows build.
Does anyone have a clue what's going on? How do I get around this?
Update: I disabled my antivirus in Windows: Didn't help.
However, a colleague from work pointed me to a workaround: Setup SMB File Sharing under Mac os and connect to the samba share with windows. Surprisingly I am able to compile the project on the samba share. Would be glad if anyone could explain that issue though.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
将调试信息切换为 C7 格式,而不是使用 PDB。
项目选项-> C/C++->一般->调试信息格式并将其设置为C7。
Switch the debug info to C7 format instead of using the PDB.
Project Options -> C/C++ -> General -> Debug Information Format and set it to C7.
有趣的是,在升级到最新版本和更新(Mavericks、VMWare Fusion、VS 2010)后,此问题已自行解决。在那之前,问题中提到的解决方法运行良好,并且在过去的两年内我没有真正的机会再次查看该项目。
Interestingly this issue has resolved itself after upgrading to the latest releases and updates (Mavericks, VMWare Fusion, VS 2010). Until then the workaround mentioned in the question just worked fine, and I haven't had a real chance to look at that project again within the last 2 years.
我刚刚重新启动 VS 2010,杀死进程 mspdbsrv.exe,删除 /Debug 并重建项目。
http://connect .microsoft.com/VisualStudio/feedback/details/507155/cl-fatal-error-c1033-cannot-open-program-database
I just restarted VS 2010, killed process mspdbsrv.exe, deleted /Debug and rebuilt the project.
http://connect.microsoft.com/VisualStudio/feedback/details/507155/cl-fatal-error-c1033-cannot-open-program-database
我遇到了类似的问题,但我无法从一个简单的 cpp 文件构建一个新创建的解决方案,而不是共享文件夹。
我注意到,devenv.exe 处于从此处启用的“Windows XP SP3 兼容模式”(在窗口资源管理器、选项、兼容性窗格中的文件上单击鼠标右键):
我确实删除了该标志,并且它已修复。
I had a similar problem but instead of a share folder i just could not build even a fresh created solution from a single simple cpp file.
I've noticed, that the devenv.exe was on "Windows XP SP3 Compatability Mode" enabled from here (right mouse button on the file in window explorer, Options, Compatability Pane):
I did remove the flag and it has fixed.