link .o not .c
use -4 and -6 to choose ip version