Hi all,
I'm really struggling here trying to get LAPACK working on a remote computer that I use. Here's the lowdown:
There is no machine-specific BLAS library, so I'm using the librefblas.a (renamed to libblas.a) that is distributed with LAPACK.
I'm using make.inc.gfortran from the LAPACK's INSTALL directory and did not modify it (even though when I compile my fortran programs, I use the -std=f2003 option, but have found that this is not causing my problem).
When I compile my program, I include the flags -L(directory where libblas.a and liblapack.a are stored) -llapack -lblas, and I'm fairly sure they're being found, because earlier I would get errors that ld could not find the libraries, which no not appear, so i think I've linked thinks properly.
NONETHELESS, when I try to compile a test fortran program that invokes "call sgesv(....)", I get the well-known error:
/tmp/ccgzZTsI.o: In function `MAIN__':
read_grib.f:(.text+0x2b7e): undefined reference to `sgesv_'
collect2: ld returned 1 exit status
I have examined the output of nm liblapack.a | grep sgesv and find that the name of the function is indeed sgesv_
I'm a bit at a loss. Does anyone have any thoughts? Thank you for your help, in advance!
Taylor

