LAPACK Archives

[Lapack] Queries on SGELSS subroutine

Hi,

I have written a program to use subroutine SGELSS from the LAPACK library.
However, when i try to compile the program, svd.f, it gives me some error
messages. Whats the error messages mean ?  HOw should i rectify it ?

Compile command i use:
gfortran svd.f -llapack -blas

Error message output:

-bash-3.2$ 
-bash-3.2$ gfortran svd.f  -llapack -lblas
/usr/local/lib64/liblapack.a(sormbr.o): In function `sormbr_':
sormbr.f:(.text+0x245): undefined reference to `s_cat'
sormbr.f:(.text+0x5dc): undefined reference to `s_cat'
sormbr.f:(.text+0x687): undefined reference to `s_cat'
sormbr.f:(.text+0x739): undefined reference to `s_cat'
/usr/local/lib64/liblapack.a(sormlq.o): In function `sormlq_':
sormlq.f:(.text+0x282): undefined reference to `s_cat'
/usr/local/lib64/liblapack.a(sormlq.o):sormlq.f:(.text+0x90d): more undefined
references to `s_cat' follow
/usr/local/lib64/liblapack.a(slamch.o): In function `slamc2_':
slamch.f:(.text+0x10c5): undefined reference to `s_wsfe'
slamch.f:(.text+0x10e2): undefined reference to `do_fio'
slamch.f:(.text+0x10ec): undefined reference to `e_wsfe'
/usr/local/lib64/liblapack.a(ilaenv.o): In function `ilaenv_':
ilaenv.f:(.text+0x154): undefined reference to `s_copy'
ilaenv.f:(.text+0x252): undefined reference to `s_copy'
ilaenv.f:(.text+0x26f): undefined reference to `s_copy'
ilaenv.f:(.text+0x289): undefined reference to `s_copy'
ilaenv.f:(.text+0x2c4): undefined reference to `s_cmp'
ilaenv.f:(.text+0x2e5): undefined reference to `s_cmp'
ilaenv.f:(.text+0x315): undefined reference to `s_copy'
ilaenv.f:(.text+0x350): undefined reference to `s_copy'
ilaenv.f:(.text+0x372): undefined reference to `s_copy'
ilaenv.f:(.text+0x396): undefined reference to `s_copy'
ilaenv.f:(.text+0x3bb): undefined reference to `s_copy'
ilaenv.f:(.text+0x3dd): undefined reference to `s_cmp'
ilaenv.f:(.text+0x3fa): undefined reference to `s_cmp'
ilaenv.f:(.text+0x42b): undefined reference to `s_cmp'
ilaenv.f:(.text+0x46f): undefined reference to `s_cmp'
ilaenv.f:(.text+0x4a5): undefined reference to `s_cmp'
/usr/local/lib64/liblapack.a(ilaenv.o):ilaenv.f:(.text+0x4db): more undefined
references to `s_cmp' follow
/usr/local/lib64/liblapack.a(xerbla.o): In function `xerbla_':
xerbla.f:(.text+0x17): undefined reference to `s_wsfe'
xerbla.f:(.text+0x2d): undefined reference to `do_fio'
xerbla.f:(.text+0x43): undefined reference to `do_fio'
xerbla.f:(.text+0x4a): undefined reference to `e_wsfe'
xerbla.f:(.text+0x5a): undefined reference to `s_stop'
collect2: ld returned 1 exit status
-bash-3.2$ 


Alan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: svd.f
Type: application/octet-stream
Size: 492 bytes
Desc: not available
Url : 
http://lists.eecs.utk.edu/mailman/private/lapack/attachments/20101121/2f455bcb/svd.obj
 

<Prev in Thread] Current Thread [Next in Thread>


For additional information you may use the LAPACK/ScaLAPACK Forum.
Or one of the mailing lists, or