Ora l'errore segnalato è:

/tmp/ccLA97Lx.o: In function `main':
/tmp/ccLA97Lx.o(.text+0x17): undefined reference to `getch'
collect2: ld returned 1 exit status