linking static

Eildert Groeneveld eildert.groeneveld@fli.bund.de
Mon Oct 19 22:01:00 GMT 2009


Hei Guys

is there an issue with the current version (gfortran-4.4) and producing a 
statically linked binary, whcih used to work a number of months ago.
I wan to link this mighty prog
program uiu
      integer lntrait,lpdiag,lsol,info
      call dppsv ('L',lntrait,1,lpdiag,lsol,lntrait,info)
end program uiu

dppsv is a lapack routine:
eg@eno:~/f95pest/src$ nm /usr/lib/liblapack.a|grep dppsv
dppsv.o:
0000000000000000 T dppsv_

yet running:
eg@eno:~/f95pest/src$ gfortran  -llapack iii.f90  - dynamic works fine
eg@eno:~/f95pest/src$ gfortran  -llapack -static iii.f90
/tmp/ccaTvIx8.o: In function `MAIN__':
iii.f90:(.text+0x54): undefined reference to `dppsv_'

whats up?

any ideas?

Greetings

Eildert
-- 



More information about the Gcc-help mailing list