dereferencing pointer to incomplete type 'DIR {aka struct __dirstream_t}' code example
Example: error: dereferencing pointer to incomplete type
The “dereferencing pointer to incomplete type” error commonly occurs in C when one tries to dereference a type (usually a struct) that is:
not declared at all.
declared, but not defined.