Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Linking question gcc lib and ifort

tobias-burnus
Beginner
420 Views
Hello,

I'm on a SuSE Linux 9.1/ia32 system with l_fc_pc_8.0.046_pe047.1/20040520Z and try to link a ifort complied application to the SUSE provided (GCC 3.3.3) BLAS library.

Unfortunally, I get such lines:
/usr/lib/libblas.so: undefined reference to `e_wsfe'

nm /usr/lib/libblas.so|grep z_abs shows:
U z_abs
and ldd /usr/lib/libblas.so:
linux-gate.so.1 => (0xffffe000)
libc.so.6 => /lib/tls/libc.so.6 (0x40067000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

linux-gate.so.1 is a 'virtual' library provided by the Linux 2.6 kernel (2.6.5-7.95 with glibc 2.3.3 in this case).

Any ideas? Are the compliles incompatible? Or has the linker problems with linux-gate.so?

Regards,

Tobias
0 Kudos
1 Reply
tobias-burnus
Beginner
420 Views
Answering to myself:
One has to use the option -lg2c (or -lf2c depending on the distribution), a simple -lblas is not enough.

(The libg2c/libf2c belongs to gcc-g77.)

Tobias
0 Kudos
Reply