I’m working on a program that uses the Accelerate framework (for LAPACK) and I have several issues. The code is written in C but needs to include C++ headers. I renamed the file to .cpp but it caused two errors, shown below.
So I then realized tried to #include <Accelerate/Accelerate.h> to include the headers, since what our LAPACK coder did was retype the definitions (dgemm_(), dposv_(), etc.) at the beginning of the file and rely on the compiler/linker to work things out. So I commented out those and just did the #include. What came out was this:
So, how do I use the LAPACK functions using Accelerate in a C++ file? I’m not that familiar with LAPACK, so I’m not sure how that framework normally works.
You should use call
dgemm_anddposv_using the type__CLPK_integerorlonginstead ofint. The error is because along*cannot be implicitly converted to anint*in C++.