Advertisement
Guest User

make file error

a guest
Feb 3rd, 2018
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.16 KB | None | 0 0
  1. C:\Users\Relican\Desktop\sdl doom source code>make
  2. makefile:163: warning: overriding commands for target `.s.o'
  3. makefile:160: warning: ignoring old commands for target `.s.o'
  4. gcc -DPACKAGE=\"sdldoom\" -DVERSION=\"1.10\"  -I. -I.      -g -O2 -I/usr/local/cross-tools/i386-mingw32/include -I{prefix}/include/SDL-Dmain=SDL_main -c i_net.c
  5. In file included from d_ticcmd.h:26:0,
  6.                 from i_system.h:26,
  7.                 from i_net.c:59:
  8. doomtype.h:41:28: error: conflicting types for 'boolean'
  9. typedef enum {false, true} boolean;
  10.                            ^
  11. In file included from ./wtypes.h:8:0,
  12.                 from ./winscard.h:10,
  13.                 from ./windows.h:97,
  14.                 from i_net.c:52:
  15. ./rpcndr.h:65:25: note: previous declaration of 'boolean' was here
  16.   typedef unsigned char boolean;
  17.                         ^
  18. i_net.c:110:17: error: 'IPPORT_USERRESERVED' undeclared here (not in a function)
  19. int DOOMPORT = (IPPORT_USERRESERVED +0x1d );
  20.                 ^
  21. i_net.c: In function 'PacketSend':
  22. i_net.c:183:30: warning: passing argument 2 of 'sendto' from incompatible pointer type [-Wincompatible-pointer-types]
  23.     c = sendto (sendsocket , &sw, doomcom->datalength
  24.                              ^
  25. In file included from ./windows.h:92:0,
  26.                 from i_net.c:52:
  27. ./winsock.h:302:34: note: expected 'const char *' but argument is of type 'doomdata_t * {aka struct <anonymous> *}'
  28.   WINSOCK_API_LINKAGE int WSAAPI sendto(SOCKET s,const char *buf,int len,int flags,const struct sockaddr *to,int tolen);
  29.                                  ^
  30. i_net.c: In function 'PacketGet':
  31. i_net.c:204:29: warning: passing argument 2 of 'recvfrom' from incompatible pointer type [-Wincompatible-pointer-types]
  32.     c = recvfrom (insocket, &sw, sizeof(sw), 0
  33.                             ^
  34. In file included from ./windows.h:92:0,
  35.                 from i_net.c:52:
  36. ./winsock.h:297:34: note: expected 'char *' but argument is of type 'doomdata_t * {aka struct <anonymous> *}'
  37.   WINSOCK_API_LINKAGE int WSAAPI recvfrom(SOCKET s,char *buf,int len,int flags,struct sockaddr *from,int *fromlen);
  38.                                  ^
  39. make: *** [i_net.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement