Some functions work fine, but most functions don't. Here's a sample piece of code that fails during runtime:
#include <iostream>
#include <lapacke.h>
int main()
{
//test lapack
double a[2][2] = {3,4,2,3};
lapack_int n,m,lda,info1,info2;
lapack_int* ipiv;
double* work;
n = 2;
m = 2;
lda = 2;
std::cout << "test";
info1 = LAPACKE_dgetrf(LAPACK_ROW_MAJOR,m,n,*a,lda,ipiv);
std::cout << "test";
info2 = LAPACKE_dgetri(LAPACK_ROW_MAJOR,n,*a,lda,ipiv);
std::cout << "test";
int i,j;
for(int i=0; i<n; i++) {
for(j=0;j<n;j++) {
std::cout << a[i][j] << std::endl;
}
}
return(info1*info2);
}
------------------------------
There's no error message. I do see the first "test" message, but then it simply crashes. I'm using the MinGW compiler. Anyone ever had this issue before?