compiling Kaffe for win32 !

David Smith dsmith at algonet.se
Fri Aug 21 06:53:31 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

-- 
David Smith


More information about the kaffe mailing list