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:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.