Visual Studio 2013 fatal error C1041 /FS(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:usersusernamedesktopprojectNameprojectNamex64debugvc120.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)
到
$(Platform)$(Configuration)$(ProjectName)
在
配置属性 |一般 |中间目录
在每个项目中都解决了它.
in each of the projects solved it.
这篇关于Visual Studio 2013 致命错误 C1041/FS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Visual Studio 2013 致命错误 C1041/FS


基础教程推荐
- C++结构和函数声明。为什么它不能编译? 2022-11-07
- 常量变量在标题中不起作用 2021-01-01
- 我有静态或动态 boost 库吗? 2021-01-01
- 静态库、静态链接动态库和动态链接动态库的 .lib 文件里面是什么? 2021-01-01
- 如何将 std::pair 的排序 std::list 转换为 std::map 2022-01-01
- 如何在 C++ 中初始化静态常量成员? 2022-01-01
- 这个宏可以转换成函数吗? 2022-01-01
- 如何通过C程序打开命令提示符Cmd 2022-12-09
- 如何检查GTK+3.0中的小部件类型? 2022-11-30
- 在 C++ 中计算滚动/移动平均值 2021-01-01