Welcome to MSDN Blogs Sign in | Join | Help

OpenMP and WinSxS

If you've tried to build an OpenMP application and seen this error dialog pop-up: "This application has failed to start because vcompd.dll was not found." then you've come to the right place.

It turns out that due to vcomp(d).lib being a pure import lib it doesn't have a manifest in it.  So to get the manifest for vcomp(d).dll we put it in omp.h.  In fact if you look in omp.h, starting with this line, #if !defined(_OPENMP_NOFORCE_MANIFEST), you will see where we do the manifest generation.

This requires the programmer to include omp.h even in cases where they're only using OpenMP pragmas.  Should only be five seconds worth of work, although more than five seconds worth of work to figure out what the problem was.  Hopefully this blog has all of the keywords one might search if they run across this issue.

 

Published Monday, October 24, 2005 8:57 PM by kanggatl

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: OpenMP and WinSxS

Friday, December 23, 2005 7:37 PM by Michael
Thanks saved alot of trouble :)

Couldnt find out why i kept getting that error

# re: OpenMP and WinSxS

Wednesday, January 04, 2006 8:39 PM by kanggatl
Glad to hear it could help :-)

# re: OpenMP and WinSxS

Monday, January 16, 2006 10:52 AM by Nick
Yeah seriously, that post sure did rule all. I spent an half hour trying to find an answer to it. :-P

# re: OpenMP and WinSxS

Monday, May 22, 2006 9:32 AM by Paul Roberts
Thanks :)

# re: OpenMP and WinSxS

Saturday, August 26, 2006 9:45 PM by Dave

Thanks for that, I think OpenMP in VS2005 should get more attention - compined with C++\CLI it's a great way of speeding up critical paths in managed code.

# OpenMP on Visual Studio

Wednesday, October 04, 2006 4:10 PM by Jose Aguilar's Blog

Solution to the message "This application has failed to start because vcompd.dll was not found. Re-installing the application may fix this problem." when creating openmp applications with Visual Studio 2005

# re: OpenMP and WinSxS

Sunday, November 05, 2006 7:53 PM by p.rojanavasu

Greate!! It's help me very much.

# re: OpenMP and WinSxS

Thursday, May 17, 2007 4:22 PM by Nezos

I already got into trouble, thought visual studio's installation got corrupted.

Thanks for the solution to the problem.

# re: OpenMP and WinSxS

Friday, October 19, 2007 9:37 AM by Mike

Very helpful!  Now if you could only help me solve my multi-threading issues.  :-)

# re: OpenMP and WinSxS

Tuesday, December 18, 2007 11:54 AM by Steve

Me too, me too!  This turned what would certainly be a few hours of work into a simple fix.

# re: OpenMP and WinSxS

Thursday, January 10, 2008 11:38 AM by Alexandru Gris

Hello, [visual studio 2008]

if using a configuration like:

app with _DEBUG defined (debug version) and Multithreaded DLL (release version of the runtime) you must include <omp.h> like this:

#undef _DEBUG

#include <omp.h>

#define _DEBUG

# re: OpenMP and WinSxS

Friday, April 11, 2008 8:49 PM by Mandeep

Thanks a lot, it was a great deal of help

# re: OpenMP and WinSxS

Tuesday, April 15, 2008 5:32 AM by ibai arrizabalaga

Thanks for help!!!! Was starting to be pissed with it :D

# re: OpenMP and WinSxS

Friday, June 13, 2008 6:39 PM by Dave K.

I was having this problem even though I had included the #include <omp.h> as part of my headers.  What fixed it was moving the omp include statement at the end of all my other includes.  Before, it had been the first include.

# OpenMP on Visual Studio | Jose Aguilar's Blog

Wednesday, October 08, 2008 3:47 PM by OpenMP on Visual Studio | Jose Aguilar's Blog

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker