1 |
sudo apt-get install liblapacke-dev libblas-dev liblapack-dev |
First thing first, install lapack, lapacke(C wrapper for lapack), and blas.
Let’s use the demo code from http://www.netlib.org/lapack/lapacke.html, save it as test.cpp
1 |
g++ -o run test.cpp -llapacke -llapack -lblas -lgfortran |
That’s all I need to let it compile.
To run it, you just need to
1 |
./run |
Done. Thanks. Period.