Compiler Error C3007
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Compiler Error C3007.
arg' : clause on OpenMP 'directive' directive does not take an argument
An OpenMP directive had an argument, but the directive does not take an argument.
The following sample generates C3007:
// C3007.c
// compile with: /openmp
int main()
{
#pragma omp parallel for ordered(2) // C3007
}
Show: