This error is sometimes reported when writing C/C + + experiments:
[Error] ld returned 1 exit status
This error is sometimes reported, that is, when running, it will jump to the warning place to report an error, but the warning will not report an error originally.
There are several reasons:
1. Other functions are defined in the main function
2. When there are many codes, the function name of a library function is wrong, such as scanf, printf and main
3. A custom function has only a function name and no function body, but is called
4. The function name of the custom function is inconsistent with the parameters in the function body below, resulting in the non existence of the called function
5. The last running program has not been closed
Read More:
- Solution to dev C + + error [error] LD returned 1 exit status
- A solution to [error] LD returned 1 exit status
- collect2: error:ld returned 1 exit status solution
- Solutions to the problem of “collect2.exe: error: LD returned 1” exit “status when writing C + + with vscode
- ||Error: LD returned 1 exit status | C + + compile time problems
- In function `_start’ undefined reference to `main’ error: ld returned 1 exit status
- Collect2.exe: error: LD returned 5 exit status solution
- About the problem of collect2.exe [error] LD returned 1 exit status in dev!!!
- .. ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status make[2]: ***
- Possible causes of [errror] ID returned 1 exit status error in dev C + + Programmer
- Linux GCC compilation error: “collect2: LD returned 1 exit status”
- Solutions to the problem of collect2: error: LD returned 1 exit status
- undefined reference to `pthread_create’ collect2: ld returned 1 exit status
- undefined reference to `WinMain‘collect2.exe: error: ld returned 1 exit status
- Collect2: error: LD returned 1 exit status
- Php7 compiles collect2: error: LD returned 1 exit status
- Error: LD returned 1 exit status appears when developing esp8266 with anxinco IDE
- Error: LTO wrapper failed collect2: error: LD returned 1 exit status
- Solution to the segmentation fault of single chain table in C language
- error C2057: expected constant expression (Can the size of an array in C language be defined when the program is running?)