compiling Kaffe for win32 !

Godmar Back gback at cs.utah.edu
Mon Aug 24 10:19:45 PDT 1998


> 
> DDunkin at walldata.com wrote:
> > gcc -g -O2 -I. -I../../../include -I./../../../include -I../../../config
> > -I./../../../config  -c  Runtime.c -o Runtime.o
> > In file included from Runtime.c:16:
> > ./../../config/config-io.h:21: invalid macro name
> 
> You get the error because line 21 in config-io.h reads #define
> <winsock.h> (umm... obviously).  That would certainly be easy to fix,
> but you don't really want winsock at all sice Cygwin32 has "unix"
> sockets.  A quick and easy way to solve the problem is to add the
> follwing lines to ~/config/config-hacks.h:
> 
> /*
>  * Cygnus32 has both winsock.h and sys/socket.h which
>  * will give us problems
>  */
> #if defined(HAVE_WINSOCK_H) && defined(HAVE_SYS_SOCKET_H)
> #undef HAVE_WINSOCK_H
> #endif
> 

 This is already fixed in the current snapshot.

	- Godmar



More information about the kaffe mailing list