gcc -lcal -o [name you want the output file to have; without -o flag, defaults to "a.out"] [name of source file]