On Thu, Jun 4, 2020 at 10:07 AM Rajat Dahiya via Gcc-help <gcc-help@xxxxxxxxxxx> wrote: > I have got > collect2.exe error ld returned 1 exit status > This error during any c/c++ code in vscode/sublime text 3 > Please send me solutions. Generally, the first error message is the most important one, and the last error message is the least important one. You included the last error message which has no useful info for us. Also, in general, we need to be able to reproduce a problem in order to understand it, and you haven't provided any info on what exactly you did to generate the error. Jim