Are those .a files in the compiler's lib directory? If not, did you specify the directory that they are in with the -L option?