Edit

Share via


Compiler Error C3001

'error_text' : expected an OpenMP directive name

The omp pragma must be followed by a directive.

The following sample generates C3001:

// C3001.c
// compile with: /openmp
int main()
{
   #pragma omp   // C3001 missing token
}