Tore H. Larsen wrote:
bauckhag@cs.yorku.ca wrote:
Hello everyone
I am desperately trying to compile C programs which require LAPACK on SUSE 10.0 (running on an AMD 64 bit architecture).
So far, I was using Suse 9.1 and everything worked fine. There, I had the following packages installed: - gcc (3.3.3-41 i586) - gcc-f77 - f2c (0.11-1043 i586) - lapack (3.0-920.1 i586)
Using the following line in the makefile, gcc was able to compile C programs involving LAPCK: LDLIBS+= -lgcc -llapck -lg2c -lm
Now, under SUSE 10.0, I installed the following packages: - gcc (4.0.2_20050901-3x86_64) - gcc-fortran - compat-g77 (3.3.5-2x86_64) - f2c (0.11-1052x85_64) - lapack (3.0-926x86_64)
Alas, using the same linking options as above now results in numerous errors such as: /usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../lib64/liblapack.a(dgeev.i): In function 'dgeev_': undefined reference to 'gfortran_copy_string'
What can be done to resolve this and to get programs developped under SUSE 9.1 running under SUSE 10.0? Calling SUSE support on this was a nightmare experience! Does anybody here have an idea?
Looks to me like gfortran_copy_string is undefined in libgfortran
^undefined^defined :) --Tore
change you LDLIBS to
LDLIBS+= -lgcc -llapack -lg2c -lm -fdefault-integer-8 -lgfortran
Regards, Tore