Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

MKL Functions using in C++

joesam
Beginner
537 Views

Hi

I am using INTEL MKL functions successfully in C code. I have included "mkl_c.lib" and "libguide.lib" in Project Settings-->Link-->"Object/library modules" and the path of lib directory in "Additional library path" field. It is working fine.

But if i use the same code in my C++ extension file and setting the same path as mentioned above, I am getting link error.

Whether the path setting is different for C++.

Please mail me in this regards

Thanks and Regards

Joesam

0 Kudos
1 Reply
TimP
Honored Contributor III
537 Views

The only thing I could think of which would change in C++ is that you would require extern "C" qualifiers for the names of the MKL functions. You could confirm this by looking at the error messages, or by running dumpbin or equivalent on your .obj. The MKL header files should take care of this.

0 Kudos
Reply