How to fix collect2.exe: error: ld returned 1 exit status exit status 1 Compilation error: exit status 1

A post was split to a new topic: Collect2.exe: error: ld returned 1 exit status