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

Linking problem, OMP Error #15

ursheckmann
Beginner
707 Views

Hi,

So I've managed to create .dlls (plug-ins) that staticly link to MKL 10.0.5.025, using mkl_c.lib, mkl_core.lib and libomp5mt.lib (or libguide.lib) in VC2005.

This works fine as long as a hosting application loads only one of these .dlls. But as soon as a second .dll is loaded, things go weird with this message popping up: "OMP: Error #15: initializing libiomp5mt.lib, but found libiomp5mt.lib already initialized [...]".

Does that mean that MKL can not be used with static linking for plug-in environments that may load multiple exectuables that staticly link to it?

Is there a combination of static libs that I can link to that do not interfere with each other?

Thanks,

;) Urs

0 Kudos
1 Reply
Gennady_F_Intel
Moderator
707 Views

Could you please link with dynamic treading library libiomp5md.lib instead of static you used.

--Gennady

0 Kudos
Reply