Aracılığıyla paylaş


Derleyici Hatası C3055

'symbol' : 'threadprivate' yönergesinde kullanılmadan önce sembole başvurulamaz

Açıklamalar

Bir simgeye başvuruldu ve sonra izin verilmeyen threadprivate yan tümcesinde kullanıldı.

Example

Aşağıdaki örnek C3055 oluşturur:

// C3055.cpp
// compile with: /openmp
int x, y;
int z = x;
#pragma omp threadprivate(x, y)   // C3055

void test() {
   #pragma omp parallel copyin(x, y)
   {
      x = y;
   }
}

Olası çözüm:

// C3055b.cpp
// compile with: /openmp /LD
int x, y, z;
#pragma omp threadprivate(x, y)

void test() {
   #pragma omp parallel copyin(x, y)
   {
      x = y;
   }
}