error LNK1104 - can't run any code

Oct 28, 2015 at 8:33am
Whenever run code by clicking 'Start Without Debugging' I receive an error that says:
"error LNK1104: cannot open file 'C:\CS\Project1\Debug\Project1.exe'"

I have been running code fine and this error just started appearing when I try to run anything, I am using Visual Studio 2013. I am not sure what to make of this, let me know if you can help me.

Thanks,

-Alex
Oct 28, 2015 at 8:58am
closed account (48T7M4Gy)
https://msdn.microsoft.com/en-us/library/ts7eyw4s.aspx
Oct 28, 2015 at 9:18am
Make sure your program terminates. It might be still running.
Check if you could find the exe in Windows task manager.

Last edited on Oct 28, 2015 at 11:28am
Oct 29, 2015 at 1:15am
After doing some troubleshooting, I found that my anti-virus software was not allowing the .exe file to run. Very random because I had been running files perfectly fine before yesterday.

The debug folder in my project only had a .pdb file and the anti-virus software was hiding the .ilk and .exe files.
Last edited on Oct 29, 2015 at 1:18am
Oct 29, 2015 at 1:27am
closed account (48T7M4Gy)
If it's all fixed then that's great. If it's not maybe you have to run console or the .exe file in particular as administrator.
Topic archived. No new replies allowed.