This is the problem I encountered in writing C++ code in DEV. Description of the problem: at the beginning, I didn’t know what option was checked, which led to collect2.exe [Error] ld returned 1 exit status for all C++ codes run.
solution: open tool -> Compile options -& GT; Code generation/optimization -& GT; Connector, let’s see if this link to the Objective C program checks this option.
Read More:
- Solutions to the problem of “collect2.exe: error: LD returned 1” exit “status when writing C + + with vscode
- Collect2.exe: error: LD returned 5 exit status solution
- Solutions to the problem of collect2: error: LD returned 1 exit status
- undefined reference to `WinMain‘collect2.exe: error: ld returned 1 exit status
- Php7 compiles collect2: error: LD returned 1 exit status
- collect2: error:ld returned 1 exit status solution
- .. ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status make[2]: ***
- Linux GCC compilation error: “collect2: LD returned 1 exit status”
- Solution to dev C + + error [error] LD returned 1 exit status
- Collect2: error: LD returned 1 exit status
- undefined reference to `pthread_create’ collect2: ld returned 1 exit status
- Error: LTO wrapper failed collect2: error: LD returned 1 exit status
- Solution to error [error] LD returned 1 exit status in C language
- In function `_start’ undefined reference to `main’ error: ld returned 1 exit status
- A solution to [error] LD returned 1 exit status
- Possible causes of [errror] ID returned 1 exit status error in dev C + + Programmer
- ||Error: LD returned 1 exit status | C + + compile time problems
- Error: LD returned 1 exit status appears when developing esp8266 with anxinco IDE
- [Solved] error: link.exe‘ failed with exit status 1158
- cl.exe Error resolution of ‘failed with exit status 2