Question

I've been trying all day long to solve this issue and it's driving me crazy, I'm trying to debug and run my very first C++ program, Hello World, and I get the following notice:

1>------ Build started: Project: HelloWorld, Configuration: Debug Win32 ------ 1>LINK : fatal error LNK1104: cannot open file 'C:\Users\win 7\Desktop\C++ tutorials\HelloWorld\Debug\HelloWorld.exe' ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I also get an AVG detection which says:

threat: potentially harmful program Hacktool.ABLQ object name: C:\Users\win 7\Desktop\C++ tutorials\HelloWorld\Debug\HelloWorld.exe

So I tried adding it to the exceptions list, that also didn't help, I don't get it, what's the problem then?? and how can I fix this?

Was it helpful?

Solution

Make sure your HelloWorld.exe is not running when compiling linking. Also Antivirus can quarantine executable during build when suspect harmful code there. Try to add the build directory in the exceptions list of your antivirus when you trust the source code you building.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top