Compiler Error C3006
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 C3006.
clause' : clause on OpenMP 'directive' directive is missing an expected argument
An OpenMP directive did not have an expected argument.
The following sample generates C3006:
// C3006.c
// compile with: /openmp
int main()
{
#pragma omp parallel shared // C3006
// Try the following line instead:
// #pragma omp parallel shared(x) {}
}
Show: