c++ - Visual Studio c++ 仅在 Debug模式下 LNK 1104 错误

标签 c++ visual-studio visual-studio-2013

我刚刚在 Visual Studio 2013 Ultimate 中创建了 C++ 控制台应用程序。

当我在 Debug模式下运行代码时:

error LNK1104: cannot open file 'C:\Users\example.exe'  

当我在 Release模式下运行代码时:

Build: 1 succeeded

你知道吗,为什么我要让 LNK1104 处于“ Debug模式”?

最佳答案

好的,我想我找到了解决方案。

我目前正在使用“Bitdefender Total Security 2015” 在防病毒部分,

我找到了以下消息

enter image description here

所以每次我在调试版本中编译时,Bitdefender 都会准确地删除我的 .exe 文件。

解决方案:

转到防病毒部分:

enter image description here

在“排除”选项卡上单击排除的文件和文件夹

enter image description here

最后添加你的项目路径

enter image description here

我这样做了,我的项目也在调试版本中工作。

希望解决方案对您有帮助

关于c++ - Visual Studio c++ 仅在 Debug模式下 LNK 1104 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33574061/

相关文章:

c# - 为什么 C# 不一致地处理命令行参数?

c# - 在 Visual Studio UI 中将 AppSetting.json 显示为 "versioned or nested"文件

visual-studio - 如何在 msbuild 任务中获取发布配置文件名称?

c++ - 容器在概念上肯定是一个范围吗?

c++ - 一张boost :signals with boost:function definition的 map

silverlight - 如何从 PC 控制 Windows Phone 8 Silverlight 应用程序

visual-studio-2013 - 重新启用 "this project is out of date"对话框

.net - Nuget 无法解析项目中引用的 Entity Framework 7 依赖项

c++ - 查找 double * 数组的大小 C++

c++ - 编译简单的 Opt++ 示例 : Undefined reference to dswap_