I installed lapack 3.1.1 on a PowerPC (Fedora Core 6). I followed the different steps/tests succesfully (got the blas_LINUX.a and lapack_LINUX.a).
I also installed the libg2c.a manually.
Now here is my problem; I tryed to compile an example code:
- Code: Select all
#include <stdio.h>
#define NMAX 1000
extern void dgtsv_(int *, int *,
double *, double *, double *, double *,
int *, int *);
int main()
{
int i, n=10, one=1, info;
double dl[NMAX-1],d[NMAX],du[NMAX-1],b[NMAX];
for (i=0;i<n-1;i++) {
dl[i] =-1.;
d[i] = 2.;
du[i] =-1.;
b[i] = 1.;
}
d[n-1] =2.;
b[n-1] =1.;
dgtsv_(&n,&one,dl,d,du,b,&n,&info);
if (info==0) {
for (i=0;i<n;i++) {
printf(" i %d b(i) %le erreur %le \n",
i,b[i],b[i]-(i+1)*(n+1-i-1)/2.);
}
}
return 0;
}
I tryed this:
gcc example.c
and it returned
/tmp/cceayykK.o : In function 'main':
example.c(.text+0x164): undefined reference to 'dgtdv_'
So I tryed:
gcc example.c lapack_LINUX.a
(i made a link to this library in the directory)
and it returned:
lapack_LINUX.a(xerbla.o) : In function 'xerbla_':
xerbla.f ... undefined reference to 's_wsfe'
xerbla.f ... undefined reference to 'do_fio'
xerbla.f ... undefined reference to 'do_fio'
xerbla.f ... undefined reference to 'e_wsfe'
xerbla.f ... undefined reference to 's_stop'
Could someone lend me a hand please?

