VSCode writes C++ code, and an error is reported at runtime:
Undefined reference to ` WinMain ‘
Exe: Error: LD returned 1 exit status
Solution 1:
Check the code to see if there are any keyword misspellings.
Solution 2:
Close the collect2. Exe.
Win+R, Enter MSinfo32, Enter;
Software environment –& GT; Running tasks;
Find the corresponding process and view the “process ID”;
Win+R, Enter CMD, Enter;
Input: TSkill process ID.
Solution 3:
Ctrl+S, save. To run again.
Undefined reference to ` WinMain ‘
Exe: Error: LD returned 1 exit status
Solution 1:
Check the code to see if there are any keyword misspellings.
Solution 2:
Close the collect2. Exe.
Win+R, Enter MSinfo32, Enter;
Software environment –& GT; Running tasks;
Find the corresponding process and view the “process ID”;
Win+R, Enter CMD, Enter;
Input: TSkill process ID.
Solution 3:
Ctrl+S, save. To run again.
Read More:
- Solutions to the problem of collect2: error: LD returned 1 exit status
- About the problem of collect2.exe [error] LD returned 1 exit status in dev!!!
- Collect2.exe: error: LD returned 5 exit status solution
- undefined reference to `WinMain‘collect2.exe: error: ld returned 1 exit status
- Php7 compiles collect2: error: LD returned 1 exit status
- Linux GCC compilation error: “collect2: 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]: ***
- 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 dev C + + error [error] LD returned 1 exit status
- Solution to error [error] LD returned 1 exit status in C language
- ||Error: LD returned 1 exit status | C + + compile time problems
- A solution to [error] LD returned 1 exit status
- In function `_start’ undefined reference to `main’ error: ld returned 1 exit status
- Error: LD returned 1 exit status appears when developing esp8266 with anxinco IDE
- Possible causes of [errror] ID returned 1 exit status error in dev C + + Programmer
- [Solved] error: link.exe‘ failed with exit status 1158
- cl.exe Error resolution of ‘failed with exit status 2