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

I have enabled openMP using project settings, but when I do #include I get an error, the file does not exist. I am using Visual Studio stadnard edition and not Express ... what else is missing? Every page I find just says to enable it in project settings and it will work.

+2


source to share


3 answers


omp.h and vcomp.lib are only available in VS Pro versions.



+2


source


Have you added the directory containing the file omp.h

to your directory search path list? Go to "tools - options - projects and solutions - VC ++ Directories", then "show directories for" "include files". Add a path here.



0


source


the solution for Visual Studio 2008 Express for OpenMP development on Windows also works with the standard edition.

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

0


source







All Articles