Compiler Error C3032
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 C3032.
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
;
}
Show: