LAPACK 3.4.2 lnking problem

Post here if you have a question about linking your program with LAPACK or ScaLAPACK library

LAPACK 3.4.2 lnking problem

Postby Ivan_MSU » Sat Sep 07, 2013 7:06 am

Hi all!

I've just installed gfortran and LAPACK 3.4.2 and tried to compile a simple test program, containing CGEES subroutine. I compiled it with
Code: Select all
 gfortran test.f90 liblapack.
and the results are:
Code: Select all
liblapack.a(cgees.o): In function `cgees_':
cgees.f:(.text+0x938): undefined reference to `ccopy_'
liblapack.a(cgehrd.o): In function `cgehrd_':
cgehrd.f:(.text+0x5f8): undefined reference to `cgemm_'
cgehrd.f:(.text+0x6bb): undefined reference to `ctrmm_'
cgehrd.f:(.text+0x736): undefined reference to `caxpy_'
liblapack.a(chseqr.o): In function `chseqr_':
chseqr.f:(.text+0x350): undefined reference to `ccopy_'
chseqr.f:(.text+0x82f): undefined reference to `ccopy_'
liblapack.a(clahqr.o): In function `clahqr_':
clahqr.f:(.text+0x367): undefined reference to `cscal_'
clahqr.f:(.text+0x3db): undefined reference to `cscal_'
clahqr.f:(.text+0x47d): undefined reference to `cscal_'
clahqr.f:(.text+0x1513): undefined reference to `cscal_'
clahqr.f:(.text+0x15b2): undefined reference to `cscal_'
clahqr.f:(.text+0x1656): undefined reference to `ccopy_'
clahqr.f:(.text+0x1719): undefined reference to `cscal_'
clahqr.f:(.text+0x1827): undefined reference to `cscal_'
clahqr.f:(.text+0x197d): undefined reference to `cscal_'
clahqr.f:(.text+0x19f7): undefined reference to `cscal_'
liblapack.a(clahr2.o): In function `clahr2_':
clahr2.f:(.text+0x255): undefined reference to `cgemv_'
clahr2.f:(.text+0x30c): undefined reference to `cgemv_'
clahr2.f:(.text+0x3c0): undefined reference to `cgemv_'
clahr2.f:(.text+0x414): undefined reference to `cscal_'
clahr2.f:(.text+0x464): undefined reference to `cscal_'
clahr2.f:(.text+0x4d4): undefined reference to `ctrmv_'
clahr2.f:(.text+0x5e3): undefined reference to `cgemv_'
clahr2.f:(.text+0x67c): undefined reference to `ccopy_'
clahr2.f:(.text+0x710): undefined reference to `ctrmv_'
clahr2.f:(.text+0x7ce): undefined reference to `cgemv_'
clahr2.f:(.text+0x84f): undefined reference to `ctrmv_'
clahr2.f:(.text+0x90d): undefined reference to `cgemv_'
clahr2.f:(.text+0x9a1): undefined reference to `ctrmv_'
clahr2.f:(.text+0xa06): undefined reference to `caxpy_'
clahr2.f:(.text+0xb92): undefined reference to `ctrmm_'
clahr2.f:(.text+0xc39): undefined reference to `ctrmm_'
clahr2.f:(.text+0xce6): undefined reference to `cgemm_'
liblapack.a(claqr3.o): In function `claqr3_':
claqr3.f:(.text+0x36f): undefined reference to `ccopy_'
claqr3.f:(.text+0x8f3): undefined reference to `ccopy_'
claqr3.f:(.text+0xc99): undefined reference to `ccopy_'
claqr3.f:(.text+0xf01): undefined reference to `cgemm_'
claqr3.f:(.text+0x10ff): undefined reference to `cgemm_'
claqr3.f:(.text+0x12c9): undefined reference to `cgemm_'
liblapack.a(claqr5.o): In function `claqr5_':
claqr5.f:(.text+0x1dca): undefined reference to `ctrmm_'
claqr5.f:(.text+0x1e56): undefined reference to `cgemm_'
claqr5.f:(.text+0x1f56): undefined reference to `ctrmm_'
claqr5.f:(.text+0x2052): undefined reference to `cgemm_'
claqr5.f:(.text+0x231d): undefined reference to `ctrmm_'
claqr5.f:(.text+0x23a9): undefined reference to `cgemm_'
claqr5.f:(.text+0x24c7): undefined reference to `ctrmm_'
claqr5.f:(.text+0x25ca): undefined reference to `cgemm_'
claqr5.f:(.text+0x2874): undefined reference to `ctrmm_'
claqr5.f:(.text+0x2900): undefined reference to `cgemm_'
claqr5.f:(.text+0x2a1e): undefined reference to `ctrmm_'
claqr5.f:(.text+0x2b24): undefined reference to `cgemm_'
claqr5.f:(.text+0x3496): undefined reference to `cgemm_'
claqr5.f:(.text+0x3687): undefined reference to `cgemm_'
claqr5.f:(.text+0x3853): undefined reference to `cgemm_'
liblapack.a(clarf.o): In function `clarf_':
clarf.f:(.text+0x204): undefined reference to `cgemv_'
clarf.f:(.text+0x265): undefined reference to `cgerc_'
clarf.f:(.text+0x32a): undefined reference to `cgemv_'
clarf.f:(.text+0x38b): undefined reference to `cgerc_'
liblapack.a(clarfb.o): In function `clarfb_':
clarfb.f:(.text+0x26e): undefined reference to `ccopy_'
clarfb.f:(.text+0x31f): undefined reference to `ctrmm_'
clarfb.f:(.text+0x3b0): undefined reference to `ctrmm_'
clarfb.f:(.text+0x437): undefined reference to `ctrmm_'
clarfb.f:(.text+0x65d): undefined reference to `ccopy_'
clarfb.f:(.text+0x6f7): undefined reference to `ctrmm_'
clarfb.f:(.text+0x788): undefined reference to `ctrmm_'
clarfb.f:(.text+0x816): undefined reference to `ctrmm_'
clarfb.f:(.text+0x98b): undefined reference to `ccopy_'
clarfb.f:(.text+0xa56): undefined reference to `ctrmm_'
clarfb.f:(.text+0xae2): undefined reference to `ctrmm_'
clarfb.f:(.text+0xb7f): undefined reference to `ctrmm_'
clarfb.f:(.text+0xcf5): undefined reference to `ccopy_'
clarfb.f:(.text+0xda1): undefined reference to `ctrmm_'
clarfb.f:(.text+0xe34): undefined reference to `ctrmm_'
clarfb.f:(.text+0xed8): undefined reference to `ctrmm_'
clarfb.f:(.text+0x1091): undefined reference to `ccopy_'
clarfb.f:(.text+0x1126): undefined reference to `ctrmm_'
clarfb.f:(.text+0x11b7): undefined reference to `ctrmm_'
clarfb.f:(.text+0x1245): undefined reference to `ctrmm_'
clarfb.f:(.text+0x13e4): undefined reference to `ccopy_'
clarfb.f:(.text+0x1499): undefined reference to `ctrmm_'
clarfb.f:(.text+0x152c): undefined reference to `ctrmm_'
clarfb.f:(.text+0x15d4): undefined reference to `ctrmm_'
clarfb.f:(.text+0x173b): undefined reference to `ccopy_'
clarfb.f:(.text+0x1804): undefined reference to `ctrmm_'
clarfb.f:(.text+0x1890): undefined reference to `ctrmm_'
clarfb.f:(.text+0x1931): undefined reference to `ctrmm_'
clarfb.f:(.text+0x1abe): undefined reference to `ccopy_'
clarfb.f:(.text+0x1b68): undefined reference to `ctrmm_'
clarfb.f:(.text+0x1bf9): undefined reference to `ctrmm_'
clarfb.f:(.text+0x1c87): undefined reference to `ctrmm_'
clarfb.f:(.text+0x1dbe): undefined reference to `cgemm_'
clarfb.f:(.text+0x1e6b): undefined reference to `cgemm_'
clarfb.f:(.text+0x1ef8): undefined reference to `cgemm_'
clarfb.f:(.text+0x1f89): undefined reference to `cgemm_'
clarfb.f:(.text+0x2016): undefined reference to `cgemm_'
liblapack.a(clarfb.o):clarfb.f:(.text+0x20ae): more undefined references to `cgemm_' follow
liblapack.a(clarfg.o): In function `clarfg_':
clarfg.f:(.text+0x44): undefined reference to `scnrm2_'
clarfg.f:(.text+0x155): undefined reference to `csscal_'
clarfg.f:(.text+0x1b2): undefined reference to `scnrm2_'
clarfg.f:(.text+0x277): undefined reference to `cscal_'
liblapack.a(ctrsyl.o): In function `ctrsyl_':
ctrsyl.f:(.text+0x5fb): undefined reference to `cdotc_'
ctrsyl.f:(.text+0x67b): undefined reference to `cdotc_'
ctrsyl.f:(.text+0x83e): undefined reference to `csscal_'
ctrsyl.f:(.text+0xa76): undefined reference to `cdotu_'
ctrsyl.f:(.text+0xaf4): undefined reference to `cdotc_'
ctrsyl.f:(.text+0xcce): undefined reference to `csscal_'
ctrsyl.f:(.text+0xede): undefined reference to `cdotu_'
ctrsyl.f:(.text+0xf28): undefined reference to `cdotu_'
ctrsyl.f:(.text+0x10ee): undefined reference to `csscal_'
ctrsyl.f:(.text+0x12f9): undefined reference to `cdotc_'
ctrsyl.f:(.text+0x1351): undefined reference to `cdotu_'
ctrsyl.f:(.text+0x151e): undefined reference to `csscal_'
liblapack.a(cgebak.o): In function `cgebak_':
cgebak.f:(.text+0x346): undefined reference to `csscal_'
cgebak.f:(.text+0x3f7): undefined reference to `csscal_'
cgebak.f:(.text+0x4f0): undefined reference to `cswap_'
cgebak.f:(.text+0x5c0): undefined reference to `cswap_'
liblapack.a(cgebal.o): In function `cgebal_':
cgebal.f:(.text+0x340): undefined reference to `cswap_'
cgebal.f:(.text+0x3a8): undefined reference to `cswap_'
cgebal.f:(.text+0x5c2): undefined reference to `icamax_'
cgebal.f:(.text+0x62f): undefined reference to `icamax_'
cgebal.f:(.text+0x96a): undefined reference to `csscal_'
cgebal.f:(.text+0x997): undefined reference to `csscal_'
liblapack.a(clacn2.o): In function `clacn2_':
clacn2.f:(.text+0x1b0): undefined reference to `ccopy_'
clacn2.f:(.text+0x429): undefined reference to `ccopy_'
liblapack.a(claqr2.o): In function `claqr2_':
claqr2.f:(.text+0x39a): undefined reference to `ccopy_'
claqr2.f:(.text+0x8a9): undefined reference to `ccopy_'
claqr2.f:(.text+0xc62): undefined reference to `ccopy_'
claqr2.f:(.text+0xed4): undefined reference to `cgemm_'
claqr2.f:(.text+0x10da): undefined reference to `cgemm_'
claqr2.f:(.text+0x12ac): undefined reference to `cgemm_'
liblapack.a(clarft.o): In function `clarft_':
clarft.f:(.text+0x597): undefined reference to `cgemv_'
clarft.f:(.text+0x616): undefined reference to `ctrmv_'
clarft.f:(.text+0x81c): undefined reference to `cgemm_'
clarft.f:(.text+0xba1): undefined reference to `cgemm_'
clarft.f:(.text+0xc35): undefined reference to `ctrmv_'
clarft.f:(.text+0xdfc): undefined reference to `cgemv_'
liblapack.a(cung2r.o): In function `cung2r_':
cung2r.f:(.text+0x3c1): undefined reference to `cscal_'
collect2: выполнение ld завершилось с кодом возврата 1
:(

What did I do wrong?
Ivan_MSU
 
Posts: 1
Joined: Sat Sep 07, 2013 6:58 am

Return to Linking Problem

Who is online

Users browsing this forum: No registered users and 1 guest