Visual Studio 2013致命错误C1041 / FS [英] Visual Studio 2013 fatal error C1041 /FS

查看:5492
本文介绍了Visual Studio 2013致命错误C1041 / FS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用Visual Studio 2013.每隔一段时间通过项目拒绝编译。如果我撤消任何更改,它仍然将无法编译。我发现重新创建整个项目工程。我想实际上解决这个问题。我得到的错误是:

I'm using Visual Studio 2013. Every so often by project refuses to compile. If I undo any changes, it still won't compile. I've found that recreating the entire project works. I would like to actually fix the problem though. The error that I'm getting is:

1>Critic.cpp : fatal error C1041: cannot open program database 'c:\users\username\desktop\projectName\projectName\x64\debug\vc120.pdb'; if multiple CL.EXE write to the same .PDB file, please use /FS

请按照以下说明进行操作: http://msdn.microsoft.com/en-us/library/dn502518 .aspx

I've tried following these instructions to no avail: http://msdn.microsoft.com/en-us/library/dn502518.aspx

有没有人遇到这个问题,并找到一个修复?

Has anyone else encountered this and found a fix?

推荐答案

我有这个问题,因为解决方案中的不同项目具有相同的中间目录。

I had this problem because different projects in a solution had the same intermediate directory.

更改

$(Platform)\$(Configuration)\ to $(Platform)\$(Configuration)\$(ProjectName)\



<在

in

配置属性 - > general->中级目录

项目解决了它。

这篇关于Visual Studio 2013致命错误C1041 / FS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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