How to link gfortran compiled code with lapack and arpack libraries
Hello everybody,
Could anybody help me?
In mandriva 2008 platform I have installed gcc-g77, liblapack, liblapack-devel, libblas, libblas-devel, arpack, arpack-devel and arpack-static packages. When I link *.f code and these libraries, using g77 compiler with –llapack –lblas –larpack options, everything work. Then when I replaced g77 by gfortran compiler, to be able to work with double precision complex arithmetic, I have got a number of undefined references errors:
/usr/lib/gcc/i586-mandriva-linux-gnu/4.2.2/../../../liblapack.so: undefined references to ‘etime_’
-- -- -- -- -- -- -- ‘s_stop’
-- -- -- -- -- -- -- ‘s_wsfe’
-- -- -- -- -- -- -- ‘s_cmp’
-- -- -- -- -- -- -- ‘e_wsfe’
-- -- -- -- -- -- -- ‘z_abs’
/usr/lib/gcc/i586-mandriva-linux-gnu/4.2.2/../../../libarpack.so: undefined references to ‘G77_etim_0’
/usr/lib/gcc/i586-mandriva-linux-gnu/4.2.2/../../../liblapack.so: undefined references to ‘z_sqrt’
-- -- -- -- -- -- -- ‘s_cat’
-- -- -- -- -- -- -- ‘c_sqrt’
-- -- -- -- -- -- -- ‘s_copy’
-- -- -- -- -- -- -- ‘do_fio’
-- -- -- -- -- -- -- ‘z_exp’
-- -- -- -- -- -- -- ‘c_abs’
-- -- -- -- -- -- -- ‘c_exp’
It looks as if I need to install f95 lapack and arpack libraries. Does anybody know if such rpm packages exist? I cannot find them in the net. If they exist, where is it possible to download them? Or shall I do something else?
Thank you very much,
A.V.
|