If you ever encountered the error file not recognized: File format not recognized collect2.exe: error: ld returned 1 exit status

If you ever encountered the error file not recognized: File format not recognized collect2.exe: error: ld returned 1 exit status