ld.exe permission denied when compiling C++ code using Dev C++ or CodeBlocks

This is due to .exe created of your cpp file is being examined by antivirus, you usually have to restart before the antivirus let go of the .exe. So, to solve this, you need to deactivate your antivirus so that your compiler can delete .exe after used.

Same error but I don’t see anyone giving the above solution yet:
http://forums.codeblocks.org/index.php?topic=15047.0
http://stackoverflow.com/questions/7655471/ld-exe-cannot-open-output-file-permission-denied
https://www.quora.com/How-do-I-resolve-the-Code-Blocks-error-ld-exe-cannot-open-output-file-permission-denied

Leave a Reply