I got a error saying like this. It was working fine till today, it still works. This error appears according to the source code. if I make some changes to the code this will appear and I cant rerun the program
====================[ Build | Heaps | Debug ]===================================
"C:\Program Files\JetBrains\CLion 2024.1\bin\cmake\win\x64\bin\cmake.exe" --build C:\Users\ACER\CLionProjects\Heaps\cmake-build-debug --target Heaps -j 6
[1/1] Linking CXX executable Heaps.exe
FAILED: Heaps.exe
C:\WINDOWS\system32\cmd.exe /C "cd . && C:\PROGRA~1\JETBRA~1\CLION2~1.1\bin\mingw\bin\G__~1.EXE -g CMakeFiles/Heaps.dir/main.cpp.obj -o Heaps.exe -Wl,--out-implib,libHeaps.dll.a -Wl,--major-image-version,0,--minor-image-version,0 -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && cd ."
C:\Program Files\JetBrains\CLion 2024.1\bin\mingw\bin/ld.exe: cannot open output file Heaps.exe: Permission denied
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
Please sign in to leave a comment.
Hello!
When the issue happens, please open Task Manager and check if the "Heaps.exe" process is running. If it is, please kill it.