Compiler Error C3023
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 C3023.
value' : unexpected token encountered in argument to OpenMP 'clause' clause
The values passed to a clause were not valid.
The following sample generates C3023:
// C3023.cpp
// compile with: /openmp /link vcomps.lib
#include <stdio.h>
#include "omp.h"
int main() {
int i;
#pragma omp parallel for schedule(dynamic 10) // C3023
for (i = 0; i < 10; ++i) ;
#pragma omp parallel for schedule(dynamic;10) // C3023
for (i = 0; i < 10; ++i) ;
// OK
#pragma omp parallel for schedule(dynamic, 10)
for (i = 0; i < 10; ++i)
;
}
Show: