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:
- GCC Error:(.text+0x24): undefined reference to `main‘collect2: error: ld returned 1 exit status [Solved]
- [Solved] error adding symbols: File in wrong format collect2: error: ld returned 1 exit status
- [Solved] VsCode + gfortran Compiler Error: error: ld returned 1 exit status
- VSCode Error: collect2.exe: error: ld returned 1 exit status
- [Solved] VScode Error: undefined reference to ‘WinMain’ collect2.exe: error: ld returned 1 exit status
- Ubutnu Qt Unable to start process Error: “make“ -f ‘ /usr/bin/ld: cannot find -lGL collect2: error: ld returned 1 exit sta
- DevC++ Error: [Error] Id returned 1 exit status [How to Solve]
- VSCode Error: collect2.exe:error:1d returned 1 exit status [How to Solve]
- NVM use error: exit status [How to Solve]
- How to Solve NPM run dev error: missing script:dev
- vscode: Error loading workspace: err: exit status 1: stderr: build flag -mod=readonly only valid
- docker load Error processing tar file(exit status 1): archive/tar: invalid tar header
- [Solved] error getting credentials – err: exit status GDBus.Error:org.freedesktop.DBus.Error.ServiceU
- Linux: tar Unpack .tar.bz2 File Error tar: Child returned status 2 tar: Error is not recoverable: exiting now
- After SpringBoot starts, exit the console directly and display Process finished with exit code 1
- /usr/bin/ld: skipping incompatible Error [How to Fix]
- How to Solve “/usr/bin/ld: skipping incompatible”
- How to Fix Webpack run error webpack dev server
- [Solved] – npm run dev Error: listen EADDRINUSE: address already in use :::8000(or 8080 etc.)
- C++:error C2872: ‘byte‘: ambiguous symbol [How to Solve]