Date: Sat, 16 Dec 2000 19:00:13 From: "Dudecom3 Dudecom3" <mtadbf@hotmail.com> To: freebsd-questions@FreeBSD.ORG Subject: Compiling prob Message-ID: <LAW2-F242A8UJ4Epktk000010dc@hotmail.com>
next in thread | raw e-mail | index | archive | help
<html><DIV>so look this very sample prog</DIV> <DIV>#include <sys/types.h><BR>#include <sys/socket.h></DIV> <DIV>void main()<BR>{</DIV> <DIV> struct sockaddr_in sin;</DIV> <DIV> sin.sin_addr.s_addr = inet_addr("1.1.1.1");<BR>}</DIV> <DIV> </DIV> <DIV>and i got :</DIV> <DIV>IP.c: In function `main':<BR><STRONG>IP.c:7: storage size of `sin' isn't known -> WTF? :))</STRONG><BR>IP.c:5: warning: return type of `main' is not `int'</DIV> <DIV> </DIV> <DIV>please help me, thx.</DIV><br clear=all><hr>Get Your Private, Free E-mail from MSN Hotmail at <a href="http://www.hotmail.com">http://www.hotmail.com</a>.<br></p></html> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?LAW2-F242A8UJ4Epktk000010dc>