### probably the most frequent question : lapack in c++?

Posted:

**Mon Feb 06, 2006 2:17 pm**Hi,

I'm sorry if I annoy you with this questions, which is to my opinnion one of the frequent asked questions but surfing the net I did not find a solution which could help me.

The problem is the following, I need to invert a 500x500 complex matrix which is hermitian.

For this I wanted to use the lapack libraries with the hope that I would understand how to use the lapack.a library in c++. I have been searching for small tutorials how to do it, and found lots of them, but unforunately i was never able to compile the example programs themself. I always obtained errors of the order

undefined reference to `_gfortran_st_write'the order

and much more like these.

After searching and trying for 2 days, i gave up and programed my own cholesky decomposition using the numerical receipes, but those faile for large matrices.

Can somebody help me out here, that would be great.

thanks in advance

I'm sorry if I annoy you with this questions, which is to my opinnion one of the frequent asked questions but surfing the net I did not find a solution which could help me.

The problem is the following, I need to invert a 500x500 complex matrix which is hermitian.

For this I wanted to use the lapack libraries with the hope that I would understand how to use the lapack.a library in c++. I have been searching for small tutorials how to do it, and found lots of them, but unforunately i was never able to compile the example programs themself. I always obtained errors of the order

undefined reference to `_gfortran_st_write'the order

and much more like these.

After searching and trying for 2 days, i gave up and programed my own cholesky decomposition using the numerical receipes, but those faile for large matrices.

Can somebody help me out here, that would be great.

thanks in advance