Open
Description
Hi there!
I'm trying to use OpenBLAS in my code in MSVC2015 (@ Win7 x64). The code uses __vectorcall calling convention by default, and therefore any external function declared (such as that in cblas.h) are expected to conform this calling convention (extern "C" doesn't influence on that). At the same time, OpenBLAS is built with __cdecl calling convention and therefore it can't be used until cblas.h function declarations are hacked with proper __cdecl calling convention.
For example,
void cblas_dgemm(OPENBLAS_CONST enum .....bla-bla-bla);
should be declared as:
void __cdecl cblas_dgemm(OPENBLAS_CONST enum .....bla-bla-bla);
in order to be used in code with non-cdecl calling convention.
__cdecl keyword might be Microsoft specific, but you can make generic workaround with preprocessor macros.
Could you please update function declarations of cblas.h?
Thanks!