共用方式為


編譯器錯誤 C3006

'clause': OpenMP 'directive' 指示詞上的子句遺漏必要的引數

備註

OpenMP 指示詞沒有必要的引數。

Example

下列範例會產生 C3006:

// C3006.c
// compile with: /openmp
int main()
{
   #pragma omp parallel shared   // C3006
   // Try the following line instead:
   // #pragma omp parallel shared(x) {}

}