[SDL] Netlib compile problem

Kris Arndt karn at nucleus.com
Mon Aug 2 13:39:38 PDT 1999


Linux version 2.2.5-15 (Redhat 6.0)
SDL libSDLx11.so.0.9.16

Compiling the netlib demo:

[karn at earth /home/karn/net/SDL-demos/netlib] make all
cc  -I../../SDL/include  -I../gui -O2 -funroll-loops
-fomit-frame-pointer -ffast-math -D_REENTRANT  -c SDLnet.c -o SDLnet.o
In file included from /usr/include/linux/byteorder/little_endian.h:54,
                 from /usr/include/asm/byteorder.h:45,
                 from ../../SDL/include/SDL_endian.h:58,
                 from SDLnet.h:29,
                 from SDLnet.c:26:
/usr/include/linux/byteorder/generic.h:149: conflicting types for
`ntohl'
/usr/include/netinet/in.h:232: previous declaration of `ntohl'
/usr/include/linux/byteorder/generic.h:151: conflicting types for
`htonl'
/usr/include/netinet/in.h:234: previous declaration of `htonl'
make: *** [SDLnet.o] Error 1





More information about the SDL mailing list