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

OMP: Error #15 Initializing libguide.lib

akdalmia
Beginner
651 Views
I am using MKL 10.1.1.022 with Microsoft Visual Studio 2005 and Microsoft Visual C++ compiler.
The solution suggested below applies to Intel compiler. How do I fix this error in Microsft Visual C++ compiler?

Thanks,

Arun


OMP: Error #15: Initializing libguide.lib, but found libguide40.dll already initialized.
Submit New Article

Last Modified On : November 7, 2008 8:50 AM PST
Rate
1 - poor
2 - unsatisfactory
3 - okay
4 - good
5 - excellent


"OMP: Error #15: Initializing libguide.lib, but found libguide40.dll already initialized" is a linker error generated when different parts of a program try to link both the static and dynamic versions of the OpenMP runtime. The solution is to expilcitly call out either a dynamic or static link. To link the dynamic OpenMP runtime library specify the options /MD and /Qopenmp-link=dynamic. To link statically specify /MT and /Qopenmp-link=static.
0 Kudos
2 Replies
TimP
Honored Contributor III
651 Views
It's probably better to use the libiomp5 in place of libguide, particularly if your VC code does any threading or OpenMP. The caution about not linking more than one of the OpenMP libraries still applies. If you link both libguide and vcomp instead of libiomp5 alone, you are on shaky ground, as you are if you make a .dll with static OpenMP included and then link elsewhere with dynamic OpenMP, for example. As you don't have command line options to choose the libiomp5 or static or dynamic, you will have to rely on explicit command line or project library dependencies.
0 Kudos
Gennady_F_Intel
Moderator
651 Views
As an additional comments to your questions, please look at the article OMP Abort: Initializing libguide40.dll but found libiomp5md.dll already initialized following the link http://software.intel.com/en-us/articles/opm-abort-initializing-libguide40dll
--Gennady

0 Kudos
Reply