[Lapackpp-devel] Compiling error: laversion.h
Status: Beta
Brought to you by:
cstim
|
From: Hudelist, F. <fh...@hw...> - 2007-02-28 13:01:16
|
Hi,
I just started to use LAPACK++ and I get the following errormessage from
my compiler:
=20
slioch:temp> gcc test.cpp
In file included from
/home/fh22/LAPACK++/lapackpp-2.5.1/include/lapackc.h:14,
from
/home/fh22/LAPACK++/lapackpp-2.5.1/include/lapack.h:10,
from
/home/fh22/LAPACK++/lapackpp-2.5.1/include/lapackpp.h:16,
from
/home/fh22/LAPACK++/lapackpp-2.5.1/include/lapack++.h:1,
from test.cpp:2:
/home/fh22/LAPACK++/lapackpp-2.5.1/include/lacomplex.h:45:23:
laversion.h: No such file or directory
In file included from
/home/fh22/LAPACK++/lapackpp-2.5.1/include/blas1pp.h:36,
from
/home/fh22/LAPACK++/lapackpp-2.5.1/include/blaspp.h:39,
from
/home/fh22/LAPACK++/lapackpp-2.5.1/include/lapackpp.h:52,
from
/home/fh22/LAPACK++/lapackpp-2.5.1/include/lapack++.h:1,
from test.cpp:2:
/home/fh22/LAPACK++/lapackpp-2.5.1/include/blas1.h:9:52: laversion.h: No
such file or directory
test.cpp: In function `int main()':
test.cpp:19: `zgeev' undeclared (first use this function)
test.cpp:19: (Each undeclared identifier is reported only once for each
function it appears in.)
=20
I had a look in this folder and found a file called laversion.h.in. I
just renamed this funcion to laversion.h or is that something more
serious?
=20
After I changed that I still get the error:=20
=20
test.cpp: In function `int main()':
test.cpp:19: `zgeev' undeclared (first use this function)
test.cpp:19: (Each undeclared identifier is reported only once for each
function it appears in.)
=20
My source code is:=20
=20
#include <iostream>
#include <lapack++.h>
# include <complex>
using namespace std;
=20
=20
int main(){
complex<double> M[3][3], eigVecL[3][3],eigVecR[3][3],
eigVal[3];
double lWork[6],rWork[6];
int info, dim=3D3;
=20
=20
M[1][1]=3Dcomplex<double>(1,1);
M[1][2]=3Dcomplex<double>(1,2);
M[2][1]=3Dcomplex<double>(2,1);
M[0][1]=3Dcomplex<double>(0,1);
M[0][2]=3Dcomplex<double>(0,2);
=20
zgeev('V', 'V', dim, M, dim, eigVal, eigVecL, 10, eigVecR,
10, rWork, 64*dim, rWork, info);
}
=20
What could be the problem for that?
=20
Thanks,
Florian
|