Dev-c++ version:5.3.0.3
Compilation error: Permission denied
Collect2:ld returned 1 exit status
Reason: 1. When compiling, press F9, the default in the same directory to generate EXE, the cause of this error is that it has been compiled once, there is an EXE of the same name. In fact, you carefully observe, when the F9 prompt compilation error (at this time there is the same name of the EXE), although not compiled successfully generated the experience EXE, but wait a few seconds, it will delete
The original existence of the same name EXE. Therefore, if you encounter this situation, you can actively delete the original name of the EXE, also press F9 can wait a while, and then recompile.
2. When compiling, EXE program is still running, please close, then compile. However, this issue does not occur with the version of dev-c++ that I am using because the Compile button and shortcut keys are disabled when the program is run.
Dev C + + Permission denied Collect2:ld returned 1 exit status compilation error