Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
'var' : variable in 'clause' clause cannot have incomplete type 'type'
Types passed to certain clauses must be fully visible to the compiler.
The following sample generates C3032:
// C3032.cpp
// compile with: /openmp /link vcomps.lib
#include "omp.h"
struct Incomplete;
extern struct Incomplete inc;
int main() {
int i = 9;
#pragma omp parallel private(inc) // C3032
;
#pragma omp parallel private(i) // OK
;
}