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:
- Visual studio code shortcut
- How to set vscode interface to Chinese
- Vscode configuration connection server docker write code
- Float: 99: input / output error appears in vscode SSH plug-in
- [tools] vscode debug report G + +. Exe no such file or directory fatal error no input files
- Vscode HTML file auto supplement HTML skeleton failure
- Several ways to view spark task log
- Make DOS window wait and not flash back in VS
- Angular: Program ng failed to run No application is associated
- Shortcut to exit zoom mode in VirtualBox [off]
- Win10 desktop right click display settings MS- settings:display Or Ms- settings:personalization-background resolvent
- C language — to solve the problem of program flashback when programming (in VS)
- Modify the custom keyboard shortcut of visual studio code
- fail to start Unity Package Manager
- Anaconda + vscode usage problem summary
- ModuleNotFoundError: No module named ‘tensorboardX‘
- Error 1500. Another program is in progress. You must complete another installation before continuing with this installation.
- Can’t multiply sequence by non int of type ‘float’
- vscode import numpy error:DLL load failed: The specific module could not be found
- Endnote inserting documents causes word to crash! ! Solution