Mr. Boy
Mr. Boy

Reputation: 63710

Visual C++ 2008: omp.h not found? /openMP is set

I've enabled openMP using the project settings, but when I do #include I get an error the file doesn't exist. I'm using Visual Studio stadnard edition, not Express... what else is missing? Every page I find simply says to turn it on in project settings and it will work.

Upvotes: 2

Views: 11678

Answers (3)

Attila
Attila

Reputation: 170

The solution for Visual Studio 2008 Express to develop OpenMP on Windows also works with the Standard Edition.

Basically you need to install the Windows SDK for OpenMP to get the libraries and headers. In my case I had to install the patch KB974479 too, but that may not be the case if one enables Microsoft Update for VS2008 (which I forgot to enable for all Microsoft products right after installing Windows).

Upvotes: 0

Marek
Marek

Reputation:

omp.h and vcomp.lib is only available in VS Pro editions.

Upvotes: 2

1800 INFORMATION
1800 INFORMATION

Reputation: 135245

Did you add the directory containing the file omp.h to the list of directory search paths? Go to "tools - options - projects and solutions - VC++ Directories", then "show directories for" "include files". Add the path in here.

Upvotes: 0

Related Questions