error: dereferencing pointer to incomplete type
snippet in c

error: dereferencing pointer to incomplete type

user8832

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.