[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Chicken-users] Error compiling chicken 2.2 on Windows
From: |
Andrey Fomichev |
Subject: |
RE: [Chicken-users] Error compiling chicken 2.2 on Windows |
Date: |
Sat, 15 Oct 2005 15:09:22 +0400 |
The same problem exists with utcp.c. Solution is also the same.
Unfortunately, I have not tested my patch, but I hope it works.
Thanks for the fast response.
Best regards,
Andrey
> -----Original Message-----
> From: felix winkelmann [mailto:address@hidden
> Sent: Saturday, October 15, 2005 2:52 PM
> To: Andrey Fomichev
> Cc: address@hidden
> Subject: Re: [Chicken-users] Error compiling chicken 2.2 on Windows
>
>
> Patch applied - thanks, Andrey.
>
>
> cheers,
> felix
>
> On 10/15/05, Andrey Fomichev <address@hidden> wrote:
> > Hello!
> > I've faced with the following problem building Chicken 2.2.
> > My platform: Windows 2000 Professional
> > Compiler: Visual C++ from .Net 2002
> >
> > Microsoft (R) 32-bit C/C++ Optimizing Compiler Version
> 13.00.9466 for 80x86
> > Copyright (C) Microsoft Corporation 1984-2001. All rights reserved.
> >
> > Log:
> >
> > ...
> > cl /nologo /O2 /DC_DEFAULT_TARGET_STACK_SIZE=300000
> > /DC_NO_PIC_NO_DLL /DHAVE_LOADLIBRARY /DHAVE_GETPROCADDRESS
> /DHAVE_WINDOWS_H
> > /MT /c tcp.c /DPIC
> > tcp.c
> > tcp.c(57) : warning C4133: 'function' : incompatible types -
> from 'int *' to
> > 'char *'
> > tcp.c(57) : error C2065: 'socklen_t' : undeclared identifier
> > tcp.c(57) : error C2059: syntax error : ')'
> > tcp.c(57) : error C2059: syntax error : 'while'
> > tcp.c(57) : error C2059: syntax error : 'do'
> > tcp.c(57) : error C2059: syntax error : 'while'
> > tcp.c(58) : error C2143: syntax error : missing '{' before ':'
> > tcp.c(58) : error C2059: syntax error : ':'
> > tcp.c(61) : error C2059: syntax error : '}'
> > tcp.c(191) : error C2059: syntax error : ')'
> > tcp.c(191) : error C2059: syntax error : 'while'
> > tcp.c(191) : error C2059: syntax error : 'else'
> > tcp.c(191) : error C2059: syntax error : 'while'
> > tcp.c(192) : error C2143: syntax error : missing '{' before ':'
> > tcp.c(192) : error C2059: syntax error : ':'
> > tcp.c(195) : error C2059: syntax error : '}'
> > NMAKE : fatal error U1077: 'cl' : return code '0x2'
> > Stop.
> >
> > I took a look at 'getsockopt' description in MSDN and defined
> > a macros
> >
> > #define socklen_t int
> >
> > in the beginning of the file tcp.c. That helped.
> > Best regards,
> > Andrey
> >
> >
> > =======================================
> > Andrey Fomichev (fomichev at ispras.ru)
> > Sedna Team (http://modis.ispras.ru)
> > =======================================
> >
> >
> >
> >
> > _______________________________________________
> > Chicken-users mailing list
> > address@hidden
> > http://lists.nongnu.org/mailman/listinfo/chicken-users
> >
> >
>