conquer on sco xenix

The Super User root at libove.UUCP
Tue Feb 2 14:03:52 AEST 1988


I attempted to build the recently posted "conquer" game on SCO Xenix
(system 2.2.1, development system 2.1.4) and in magic.c on lines 73
and 74 (and a few others) I get an error "case value 0 already used".

I looked at a preprocessed version of magic.c (cc -E) and it showed
quite clearly that the cases were all distinct. I put in a #ifdef M_XENIX
to use a "long int newpower" rather than "int newpower" because SCO
Xenix 2.2.1 /286 is a 16-bit system, and the distribution value of
MAXPOWER (in statement "newpower=1<<rand()%MAXPOWER") is 21... so there
would be some values that could never occur, but that didn't affect
anything when I tried compiling again.

Has anyone else hit this? Does it describe a bug I haven't heard of yet
in the SCO compiler 2.1.4? Has someone got a workaround?

Thanks!
-Jay Libove {pitt | bellcore}!darth!libove!libove *or* jl42 at andrew.cmu.edu



More information about the Comp.sources.bugs mailing list