Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
OpenMP 'ordered' directive must bind directly to a 'for' or 'parallel for' directive with the 'ordered' clause
Remarks
An ordered clause was ill formed.
Example
The following example generates C3035:
// C3035.cpp
// compile with: /openmp /link vcomps.lib
int main() {
int n = 0, x, i;
#pragma omp parallel private(n)
{
#pragma omp ordered // C3035
// Try the following line instead:
// #pragma omp for ordered
for (i = 0 ; i < 10 ; ++i)
;
}
}