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:
- Possible causes of [errror] ID returned 1 exit status error in dev C + + Programmer
- The language of C__ FILE__ 、__ LINE__ And line
- Analysis of compilation errors of “error conflicting types for function”
- pthread_ Introduction and application of join function
- panic: runtime error: index out of range
- C++ compiler prompt “undefined reference to…”[How to Fix]
- [solution] warning: this statement may fall through [- wimplicit fallthrough]) encountered during GCC compilation
- Explain stdin, stdout, stderr in C language
- The function and usage of argc and argv in C language
- How to Fix “junit.framework.Comparison Failure Expected: but was”
- Python: Understanding__ str__
- A solution to [error] LD returned 1 exit status
- Gcc compiler warning solution: “extra tokens at end of ifndef directive” Tags: GCC, warning
- Recipe for target’Project 1.exe’ failed Cause analysis and solution
- Error in comparing the size function of STL with negative number
- C + +: error in X utility file
- JNI calls the add function of list in Java to flash back
- On and off of timer in JS
- C++ error: jump to case label crosses initialization
- Solution to dev C + + error [error] LD returned 1 exit status