cc -c hello.c cc hello.o -o hello hello
cc hello2.c -o hello2 [fails] cc hello2.c -lm -o hello2 [works]In this case, functions from the file /usr/lib/libm.a are needed for the sqrt function.
% cc -c hello.c % nm hello.o 00000000 t ___gnu_compiled_c U ___main 00000010 T _main U _printf 00000000 t gcc2_compiled.