0
For a while I’ve only been able to compile c or c++ code in my cmd. And I can’t compile in any ide. Whenever I try to compile the error appears:
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe:
cannot open output file project.exe: Permission denied collect2.exe: error: Ld returned 1 Exit status.
What can I do?
I have already had this problem of "Permission denied", and as amazing as it seems it was solved only by activating a windows service in services.SC I found the solution here: https://stackoverflow.com/questions/7655471/ld-exe-cannot-open-output-file-permission-denied I hope it works for you too.
– Marcelo
You are not compiling with the program already running ? If this is the case when the run it is blocking and you cannot compile until the execution is finished, because compiling implies replacing . exe that is currently locked.
– Isac