February 15th, 2003, 03:45 PM
Re: Compile Error
| Originally posted by campbel8 |
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.
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.