How do I get kbhit() working on a Linux machine as I keep getting the following error:
sh-2.04$ gcc kbhit.c -o kb
/tmp/cciSyEJg.o: In function `main':
/tmp/cciSyEJg.o(.text+0x8): undefined reference to `kbhit'
collect2: ld returned 1 exit status
I need to program to continue execution after a keyboard stroke, is there another way of doing this?