dereferencing pointer to incomplete type struct code example
Example 1: 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.
Example 2: dereferencing pointer to incomplete type ‘struct dirent
dereferencing pointer to incomplete type ‘struct dirent