|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Compile Error
Hi,
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 |
|
#2
|
||||
|
||||
|
Re: Compile Error
Quote:
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. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > Compile Error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|