Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

problem linking lapack

paulocortes
Beginner
473 Views
Hi

I am trying to link the dgesv lapack function so I compiled my
program with
% ifort COpol.for -llapack -o COpol
/usr/lib/liblapack.so: undefined reference to `e_wsfe'
/usr/lib/liblapack.so: undefined reference to `z_abs'
/usr/lib/liblapack.so: undefined reference to `c_sqrt'
/usr/lib/liblapack.so: undefined reference to `s_cmp'
/usr/lib/liblapack.so: undefined reference to `z_exp'
/usr/lib/liblapack.so: undefined reference to `c_exp'
/usr/lib/liblapack.so: undefined reference to `do_fio'
/usr/lib/liblapack.so: undefined reference to `z_sqrt'
/usr/lib/liblapack.so: undefined reference to `s_cat'
/usr/lib/liblapack.so: undefined reference to `s_stop'
/usr/lib/liblapack.so: undefined reference to `c_abs'
/usr/lib/liblapack.so: undefined reference to `s_wsfe'
/usr/lib/liblapack.so: undefined reference to `s_copy'

the code compile well with g77. Any help will be apprecciated
0 Kudos
1 Reply
TimP
Honored Contributor III
473 Views
A lapack library built with g77 can only be linked with g77. The major options are to rebuild lapack from source with your choice of compiler, or to use MKL.
0 Kudos
Reply