Permission denied error

i have been getting this error non-stop and it only gets fixed if i restart my pc because it apparently kills the process permanently i dont know how to fix this issue it started doing that out of nowhere

====================[ Build | newCpc2 | Debug ]=================================
"C:\Program Files\JetBrains\CLion 2025.2.1\bin\cmake\win\x64\bin\cmake.exe" --build D:\newCpc2\cmake-build-debug --target newCpc2 -j 6
[1/1] Linking CXX executable newCpc2.exe
FAILED: newCpc2.exe 
C:\Windows\system32\cmd.exe /C "cd . && C:\PROGRA~1\JETBRA~1\CLION2~1.1\bin\mingw\bin\G__~1.EXE -g  CMakeFiles/newCpc2.dir/main.cpp.obj -o newCpc2.exe -Wl,--out-implib,libnewCpc2.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 2025.2.1\bin\mingw\bin/ld.exe: cannot open output file newCpc2.exe: Permission denied
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

0

Hello!

Is the newCpc2.exe process already running when you try to build the newCpc2 target? You can check it using the Task Manager.

0

请先登录再写评论。