Please help me! It takes me hours to look up in the internet and I haven't found a solution....
I am trying to use the call lapack function from C++
functions but I failed at the very beginning. Here is my code:
#include "stdafx.h"
#include "targetver.h"
extern "C" {
#include "lapacke.h"
}
int main{}
{
return 0;
}
I know "lapacke.h" is a C header so I use the extern "C"
clause. But while I try to compile this trivial function, I have the following error:
Error 1 error C2146: syntax error : missing ';' before identifier 'lapack_make_complex_float' c:\users\svd_example1\example2\example2\lapacke.h 89 1 example2
Error 2 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\users\svd_example1\example2\example2\lapacke.h 89 1 example2
Does anyone know what caused these errors?
Thank you very much!