Skip site navigation (1)Skip section navigation (2)
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 &lt;sys/types.h&gt;<BR>#include &lt;sys/socket.h&gt;</DIV>
<DIV>void main()<BR>{</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; struct sockaddr_in sin;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sin.sin_addr.s_addr = inet_addr("1.1.1.1");<BR>}</DIV>
<DIV>&nbsp;</DIV>
<DIV>and i got :</DIV>
<DIV>IP.c: In function `main':<BR><STRONG>IP.c:7: storage size of `sin' isn't known -&gt; WTF? :))</STRONG><BR>IP.c:5: warning: return type of `main' is not `int'</DIV>
<DIV>&nbsp;</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>