February 15th, 2003, 02:55 PM
I tried searching the archives for this topic, but I couldn't find an explanation. I am trying to compile a program. When I compile it, I get the following error:
"dereferencing pointer to incomplete type"
The line that is causing this error is:
pType = ntohs(e->eh_type);
where pType and eh_type are unsigned short variables.
Can someone please explain to me what causes this type of error? Thank-you
February 15th, 2003, 03:45 PM
Re: Compile Error
The message would make me think that there might be something wrong with the declaration of e's struct.
However, the Hungarian notation looks suspicious. Are you sure that pType is an unsigned short and not a pointer to an unsigned short? The name suggests strongly that it is a pointer.