Gerekli header dosyalarini include etmemissin. Mesela <netinet/in.h>: Diger eksik headerlari tespit edip include etmelisin.
[EMAIL PROTECTED] murat]$ grep "INADDR_ANY" /usr/include/netinet/* /usr/include/netinet/in.h:#define INADDR_ANY (u_int32_t)0x00000000 /usr/include/netinet/in.h:#define in_nullhost(x) ((x).s_addr == INADDR_ANY) On Tue, Jan 06, 2004 at 05:03:00AM +0200, Parahat Melayev wrote: > http://www.enderunix.org/docs/socket.html > > adresindeki kodu derlemeye calisirken asagidaki gibi hata aliyorum. > sebebi ne olabilir? nasil asabilirim? > > $ gcc -o sunucu1 sunucu.c > sunucu.c: In function `main': > sunucu.c:13: storage size of `server_addr' isn't known > sunucu.c:13: storage size of `client_addr' isn't known > sunucu.c:28: `INADDR_ANY' undeclared (first use in this function) > sunucu.c:28: (Each undeclared identifier is reported only once > sunucu.c:28: for each function it appears in.) > sunucu.c:44: sizeof applied to an incomplete type > $ uname -a > FreeBSD parahat.mobi-nex.com 5.1-RELEASE FreeBSD 5.1-RELEASE #0: Wed Dec 31 15:53:07 > EET 2003 [EMAIL PROTECTED]:/usr/src/sys/i386/compile/NEWKERNEL1 i386 > $ gcc -v > Using built-in specs. > Configured with: FreeBSD/i386 system compiler > Thread model: posix > gcc version 3.2.2 [FreeBSD] 20030205 (release) > $ -- "When all else fails, read the instructions -- Murphy's Technology Laws" Murat Balaban http://www.enderunix.org --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Liste arsivi: http://lists.enderunix.org ve http://www.mail-archive.com/[EMAIL PROTECTED] http://ipucu.EnderUNIX.org - ihtiyac duyacaginiz kisa bilgiler bu sitede!