From owner-freebsd-questions Sat Dec 16 11: 0:15 2000 From owner-freebsd-questions@FreeBSD.ORG Sat Dec 16 11:00:13 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (law2-f242.hotmail.com [216.32.181.242]) by hub.freebsd.org (Postfix) with ESMTP id 45FB137B402 for ; Sat, 16 Dec 2000 11:00:13 -0800 (PST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 16 Dec 2000 11:00:13 -0800 Received: from 64.229.239.89 by lw2fd.hotmail.msn.com with HTTP; Sat, 16 Dec 2000 19:00:13 GMT X-Originating-IP: [64.229.239.89] From: "Dudecom3 Dudecom3" To: freebsd-questions@FreeBSD.ORG Subject: Compiling prob Date: Sat, 16 Dec 2000 19:00:13 Mime-Version: 1.0 Content-Type: text/html Message-ID: X-OriginalArrivalTime: 16 Dec 2000 19:00:13.0174 (UTC) FILETIME=[6B6FA960:01C06792] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG
so look this very sample prog
#include <sys/types.h>
#include <sys/socket.h>
void main()
{
        struct sockaddr_in sin;
        sin.sin_addr.s_addr = inet_addr("1.1.1.1");
}
 
and i got :
IP.c: In function `main':
IP.c:7: storage size of `sin' isn't known -> WTF? :))
IP.c:5: warning: return type of `main' is not `int'
 
please help me, thx.


Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message