- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
--Gennady
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page