Hello,
I am working on porting of lapack funtions , I have some c++ code, and I have to do performance analysis so my code also calls the CLAPACK routine.
Say , DGESV I have a code that implements the DGESV and I have to compare the results with the CLAPACK dgesv_
but actually the compiler is not able to link properly with the library.
I have downloaded the clapack and
generated the libraries
lapack_LINUX.a
blas_LINUX.a
libf2c.a
I am linking with above 3 as well as with -lm in the end
The problem that I am facing is like :
I run the CLAPACK routine alone in a ".C" file and use gcc things work fine.
But when I combine the CLAPACK call with the my c++ code in a ".CPP" file and compiling with g++/c++ it says "UNDEFINED REFERENCE TO dgesv_(long *, long *, double *, long *, long *, double *, long *, long *)"
i tried to put my code in a ".C" file and compiling with "GCC" then the problem is that compiler is not able to find headers like 'iostream'
Is there a proper way to make this happen all right.
Please suggest me something.
One thing that is coming to my mind is that I have compiled the CLAPACK with GCC.
I tried to modify the make.inc provided with CLAPACK.tgz but I was getting some errors please tell me if compiling the CLAPACK again with g++/c++ will work? If yes then please tell me a proper way

