What does “collect2: error: ld returned 1 exit status” mean?
The ld returned 1 exit status error is the consequence of previous errors. In your example there is an earlier error – undefined reference to ‘clrscr’ – and this is the real one. The exit status error just signals that the linking step in the build process encountered some errors. Normally exit status 0 means … Read more