DevC++ reported error [Error] Id returned 1 exit status

created at 11-24-2021 views: 15

cause

The computer in the school computer room always reports errors in the second compilation

Error prompt

[Error] Id returned 1 exit status

solution

premise
First check whether the console window of your program is closed, and then recompile after closing whether it reports an error.

The following scheme is for the situation where the error is still reported after the window is closed
operate

  1. Right-click the Dev C++ icon ---> Properties --->Compatibility ---> check "Run this program as an administrator"
  2. Open Dev C++ --> Tools --> Compilation Options --> Code Generation/Optimization --> Linker --> Set "Link Objective C Program" to Yes
  3. Switch the compiler in the upper right corner of the Dev C++ main page to Debug mode (e.g. TDM-GCC 4.9.2 64-bit Debug)
  4. If the computer has a recovery card, please place the project and its files on a non-protected disk
created at:11-24-2021
edited at: 11-24-2021: