Math Kernel Library Developer Guide
Intel® oneAPI Math Kernel Library supports stdcall calling convention for the following function domains:
To use the stdcall calling convention in C/C++, follow the guidelines below:
In your function calls, pass lengths of character strings to the functions. For example, compare the following calls to the VS function vslLoadStreamF:
cdecl: errstatus = vslLoadStreamF(&stream, "streamfile.bin");
stdcall: errstatus = vslLoadStreamF(&stream, "streamfile.bin", 14);
Define the MKL_STDCALL macro using either of the following techniques:
Define the macro in your source code before including Intel® oneAPI Math Kernel Library header files:
...
#define MKL_STDCALL
#include "mkl.h"
...
Pass the macro to the compiler. For example:
icl -DMKL_STDCALL foo.cLink your application with the following library:
mkl_intel_s.lib for static linking
mkl_intel_s_dll.lib for dynamic linking