Errors in dev c++

c:\program files (x86)\dev-cpp\mingw64\x86_64-w64-mingw32\bin\ld.exe cannot open output file test.exe: Permission denied
C:\Program Files (x86)\Dev-Cpp\collect2.exe [Error] ld returned 1 exit status
25 C:\Program Files (x86)\Dev-Cpp\ recipe for target 'test.exe' failed

these are errros that i keep on getting in the compiler. Can someone help me fix these problems? Thanks bros!
That error usually occurs if (in your case) "test.exe" is running while you're trying to compile it.
(Windows doesn't allow you to modify an executable file while it's running.)

Double-check Task Manager if you think test.exe isn't running and you're still getting that error.
yeah that's one of the reasons, you may create a new project , copy-paste the code into new project and build it.

If all goes OK then cool you're good to go if not come here again!
Topic archived. No new replies allowed.