编译器错误 C3017
OpenMP“for”语句中的终止测试格式不正确
必须完全或显式指定 OpenMP 语句中的 for
循环。
下面的示例生成 C3017:
// C3017.cpp
// compile with: /openmp
int main()
{
int i = 0, j = 10;
#pragma omp parallel
{
#pragma omp for
for (i = 0; i; ++i) // C3017
// Try the following line instead:
// for (i = 0; i < 10; ++i)
;
}
}