Subject: CompilingProblems with Xbattle 5.0 (4.0 also) under Linux
I found, that Xbattle is a fantastic game to play and I enjoy to play it on
a HP at university. I tried to compile it on my LINUX-PC (486-DX33 with
X11/olwm, gcc 2.4.5 and 99pl12 Kernel (slackware 1.01).
After configuring the Makefile doing a xmkmf, I tried to compile the game with
the make-command.
This is, what I get, after the command starts:
#make
gcc -O2 -m486 -DNO_ASM -fwritable-strings -I/usr/X386/include
-D_POSIX_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -Dlinux -DFUNCPROTO=11
-DNARROWPROTO -c main.c -o main.o
main.c: In function 'run_unix_loop':
main.c:185: parse error before '__asm__'
main.c:204: break statement not within loop or switch
main.c: At top level:
main.c:207: Parse error before 'if'
main.c:211: warning: data definition has no type or storage class
main.c:212: 'new_time' undeclared here (not in a function)
main.c:212: initializer element for 'target_time' is not constant
main.c:212:
(stuff deleted)
main.c: In function 'process_event' :
main.c:572: warning: passing arg of 'XLookupString' from incompatible
pointer type
make: *** main.o ERROR=1
(I retyped this text, so there may be some misstypings up there).
SO, do you have any idea, what I am doing wrong ?
I have no idea what do do with all these errors and as I am not very
familiar with c I guess I will not be able to track this problem down.
Also, if anybody was able to compile this programm, I woud like to get the
compiled binaries.
The Makefile imake generates seems to fit my maschine, also I am not so
sure, if I really understand all the things in there...
Please answer me also via EMail, as I am not always able to keep up with all
the nn...
Bye