Notes on using gcc 1. type in gcc -o obj_prog_name prog_name.c -lm ^^^^^^^^^^^^^^^^ ^^^ Make object file ( -lm is very important-- it links math library ) 2. then type obj_prog_name to run the executable thus created.