So, out of the blue, the compiler decides to spit this in face: \"field customer has incomplete type\".
Here\'s the relevant snippets of code:
It seems that something like
typedef struct foo bar;
won't work without the definition in the header. But something like
typedef struct foo *baz;
will work, as long as you don't need to use baz->xxx in the header.
baz->xxx