Page 1 of 1

CLAPACK - ZHEEV compilation issue with stdlib.h

PostPosted: Thu Jun 29, 2017 6:21 am
by hmxmghl
Hello Members,

Its been few weeks since I have been trying to perform eigenvalue decomposition of a complex Hermitian matrix in C language and I have used numerous libraries/methods for this purpose. I must say, they all failed to give me the results I needed.

I knew about CLAPACK but never tried it because I didn't really had any experience with static library linking with C program. But when I found out that my only option is CLAPACK, I took a step in linking this library with C program. It took me few days but got it working (it took me few days because I did not have firm grip on Linux command line).

Now the linking is successfully done but the issue is using the ZHEEV routine to compute eigenvalues and eigenvectors of complex hermitian matrix. I found example program here:

https://software.intel.com/sites/products/documentation/doclib/mkl_sa/11/mkl_lapack_examples/zheev_ex.c.htm

But it is not compiling because of the issue I described in this question on StackOverflow (I tried to mention each and every detail of the issue):

https://stackoverflow.com/questions/44709431/clapack-library-error-expected-identifier-or-before-int-in-stdlib-h-abs?noredirect=1#comment76589956_44709431

It will be really helpful if anyone can give me any hint how can I resolve this issue. My whole project depends upon EVD and I cannot continue my project without performing EVD on my matrix.

Any help will be much appreciated. Bundle of thanks in advance.

Regards,
Hamza R.