First, install the developer's version of the ncurses library. Then change directories to imidiacy-source, and issue: user@host$ gcc -O3 -lm -lncurses -o bitwise.c speaker_fns.c term_fns.c record.c program.c To get permission to the PC speaker, issue as root: root@host# chown root root@host# chmod u+s Refer to the manual about the severe security risk involved in giving programs suid root permissions!