omp.h in VS 2008 compile error

General OpenMP discussion

omp.h in VS 2008 compile error

Postby c-- » Sat Dec 13, 2008 2:53 pm

I have problem. I want used OpenMP in winforms app in Visual Studio 2008 profesional.
I set in properties -> Configuration properties -> c/c++ ->language OpenMP Support on Yes(/openmp.)
I include omp.h in stdafx.h .
When I compile project it finished with this error:

Command line error D8016 : '/openmp' and '/clr:pure' command-line options are incompatible

Can somebody help me, what I do bad ???

Re: omp.h in VS 2008 compile error

Postby ejd » Mon Dec 15, 2008 9:50 am

I don't know if this is a different query from that out on the Microsoft forums or not. In any case, here is the response:
To use OpenMP in C++/CLI, replace /clr:pure to /clr. You can do this in the Project Properties, Configuration Properies, General, Common Language Runtime support.
Posts: 1025
Joined: Wed Jan 16, 2008 7:21 am

Return to Using OpenMP

Who is online

Users browsing this forum: No registered users and 1 guest