Export (0) Print
Expand All
Expand Minimize

Compiler Error C3049

Error Message

'arg' : invalid argument in OpenMP 'default' clause

An incorrect value was passed to a default clause.

The following sample generates C3049:

// C3049.cpp
// compile with: /openmp /c
int main() {
   int n1 = 1;

   #pragma omp parallel default(private)   // C3049 
   // try the following line instead
   // #pragma omp parallel default(shared)

Community Additions

© 2015 Microsoft