This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
errors
- From: "Rahul it" <sammas_it at rediffmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: 26 May 2002 13:49:54 -0000
- Subject: errors
- Reply-to: "Rahul it" <sammas_it at rediffmail dot com>
am running a code and it gives me the following error
chhabra@noix{networking} 1028 : gcc -c talker.c
talker.c: In function `main':
talker.c:39: dereferencing pointer to incomplete type
I know there is some problem with the line. I have tried but I am
unable to find it out.
their_addr.sin_addr=*((struct in_addr *)he->h_addr);
As I am new in this, this is just an example taken from
Beejs Guide to Network Programming
Section 5.3 Datagram Sockets
talker.c
The source code is on the link
http://www.ecst.csuchico.edu/~beej/guide/net/html/clientserver.html#datagram
Someone Please help.
Thanks
Shalendra
_________________________________________________________
Click below to visit monsterindia.com and review jobs in India or
Abroad
http://monsterindia.rediff.com/jobs