Dev C++ Error: error: ld returned 1 exit status [How to Solve]

There are several reasons for this error: error: ld returned 1 exit status

 

Solution (Four Methods to Solve, Not All):

1.undefined reference to `__gxx_personality_v0

Or compile with g++

To compile with gcc, add -lstdc++ to the edit option linker command

2. Close the program connected to the running dev

3. Definition error

4. Compile other settings issues

Read More: