0

I have the same problem like this post. I googled for hours but I don't know what I should install to have the #include<lapacke.h> header file.

I tried this one lapack-3.2.1-4.el6 RPM for x86_64for my CentOS 6.8. But still I have the same problem.

Thanks for any guide.

Community
  • 1
  • 1
Abolfazl
  • 1,047
  • 2
  • 12
  • 29
  • Is it possible to copy the header file to a directory and give the address by `-I` ? – Abolfazl May 07 '17 at 18:14
  • I got the package from here ( http://www.netlib.org/lapack/lapack.tgz ) and gave the header file address by `-I /path_to_folder/lapack-3.7.0/LAPACKE/include`. It solved the problem someway. – Abolfazl May 08 '17 at 05:01

1 Answers1

0

Maybe is a silly observation but I see that your include #include<lapacke.h> instead of #include<lapack.h>. Another thing,

No special header is required, Only usual headers will be there.

#include <stdio.h>
#include <math.h>

Then, try to use the normal functions, and dont do #include<lapacke.h>.

developer_hatch
  • 15,898
  • 3
  • 42
  • 75
  • lapacke is not the same as lapack. In some linux distributions they even come bundled as different system packages. When using the C interface to lapack you do need to do `#include` – albarji Aug 04 '18 at 10:59