Visual Studio c++ Only in Debug Mode LNK 1104 error

烈酒焚心 提交于 2021-01-29 04:03:34

问题


I've just created c++ console application in Visual Studio 2013 Ultimate.

When I run code in debug mode:

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

When I run code in release mode:

Build: 1 succeeded

Do you have any idea, why would i have LNK1104 on "debug mode" ?


回答1:


Ok, I think I found the solution.

I am currently using "Bitdefender Total Security 2015" and in the antivirus part,

I found the following message

So Bitdefender exactly deleted my .exe file everytime I compile in debug version.

Solution :

Go to Antivirus part:

Click excluded files and folders on Exclusion tab

Finally add your project path

I did this way and my roject also worked in debug version.

I hope the solution is helpful



来源:https://stackoverflow.com/questions/33574061/visual-studio-c-only-in-debug-mode-lnk-1104-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!