compiling Kaffe for win32 !
David Smith
kaffe@rufus.w3.org
Fri, 21 Aug 1998 15:53:31 +0200
DDunkin@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