问题
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