Compiler Error C3003
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 C3003.
directive' : OpenMP directive name not allowed after directive clauses
An OpenMP directive name cannot follow an OpenMP directive clause.
The following sample generates C3003:
// C3003.c
// compile with: /openmp
int main()
{
int x, y, z;
#pragma omp parallel shared(x, y, z) for // C3003
}
Show: