Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fatal error LNK1104: cannot open file "Debug/

I'm trying to run C++ code in microsoft visual version 6.0. The code is well compiling but I'm getting the error "fatal error LNK1104: cannot open file "Debug/Assignment.exe" when I try to build. The file is saved in the project named Assignment. I'm new to C++ and the microsoft visual stuff. I don't know where to start from to get around error. Please help.

like image 907
user3312007 Avatar asked Jan 11 '23 12:01

user3312007


2 Answers

Sounds like a copy of the exe (Debug/Assignment.exe) is already running so visual studio can't overwrite the file. Have a look in the task manager / process explorer and kill any copies that are running then try again.

like image 107
John3136 Avatar answered Jan 13 '23 00:01

John3136


Curiously, in my case it was a CMake 'debug' linker library path setting that caused almost the same error, and I guess you can have similar problems with 'optimized.obj' linking failures.

LINK : fatal error LNK1104: cannot open file 'debug.obj'

like image 30
StarShine Avatar answered Jan 13 '23 02:01

StarShine