หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
'var' : 'threadprivate' symbol cannot be used in the 'clause' clause
Remarks
A threadprivate symbol was used in a clause.
Example
The following example generates C3059:
// C3059.cpp
// compile with: /openmp
#include "omp.h"
int x, y;
#pragma omp threadprivate(x, y)
int main() {
#pragma omp parallel private(x, y) // C3059
{
x = y;
}
}
Possible resolution:
// C3059b.cpp
// compile with: /openmp
#include "omp.h"
int x = 0, y = 0;
int main() {
#pragma omp parallel firstprivate(y) private(x)
{
x = y;
}
}