This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

errors


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]