When I want to link the libraries of clapack to the object files by gcc on unix, the following error arises
-----------------------------------------------
gcc projectEx.o BlkLanAux.o tmglib_SUN4SOL2.a blas_SUN4SOL2.a lapack_SUN4SOL2.a
Undefined first referenced
symbol in file
log lapack_SUN4SOL2.a(zlarnv.o)
sqrt lapack_SUN4SOL2.a(zlange.o)
s_cmp lapack_SUN4SOL2.a(ilaenv.o)
z_abs lapack_SUN4SOL2.a(zlange.o)
z_div blas_SUN4SOL2.a(ztrsm.o)
z_exp lapack_SUN4SOL2.a(zlarnv.o)
f2c_dznrm2 lapack_SUN4SOL2.a(zlarfg.o)
d_cnjg blas_SUN4SOL2.a(zgemm.o)
d_imag lapack_SUN4SOL2.a(zlassq.o)
d_sign lapack_SUN4SOL2.a(zlarfg.o)
do_fio blas_SUN4SOL2.a(xerbla.o)
e_wsfe blas_SUN4SOL2.a(xerbla.o)
f2c_zdscal lapack_SUN4SOL2.a(zlarfg.o)
pow_di lapack_SUN4SOL2.a(dlamch.o)
s_copy lapack_SUN4SOL2.a(ilaenv.o)
s_stop blas_SUN4SOL2.a(xerbla.o)
s_wsfe blas_SUN4SOL2.a(xerbla.o)
f2c_zgemv lapack_SUN4SOL2.a(zlarft.o)
f2c_zgerc lapack_SUN4SOL2.a(zlarf.o)
f2c_zcopy lapack_SUN4SOL2.a(zlarfb.o)
f2c_ztrmm lapack_SUN4SOL2.a(zlarfb.o)
f2c_ztrmv lapack_SUN4SOL2.a(zlarft.o)
f2c_zscal lapack_SUN4SOL2.a(zlarfg.o)
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
-----------------------------------------------------
it seems like the functions in the left column are missing which are called by the object files in the right column.
Where are the functions? are there any files containing them that i should also link to the program?
thx for helping.

