bug-gnu-chess
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

compile problems in DOS


From: Lakshmi Narasimhan Sarathy
Subject: compile problems in DOS
Date: Sun, 07 Apr 2002 05:18:16 -0700


Hi
 I compiled gnuchess  for gcc(DJGPP).

-----------------------------makefile--------------------------------

        SOURCES = atak.c book.c cmd.c epd.c eval.c genmove.c \
                  hash.c hung.c init.c iterate.c main.c move.c \
                  null.c output.c players.c pgn.c \
                  quiesce.c random.c repeat.c search.c solve.c \
                  sort.c swap.c test.c \
                  ttable.c util.c version.c \
                  common.h book.h eval.h inlines.h version.h

        OBJECTS = atak.o book.o cmd.o \
        epd.o eval.o genmove.o hash.o \
        hung.o init.o iterate.o main.o \
        move.o null.o output.o \
        players.o pgn.o quiesce.o \
        random.o repeat.o search.o \
        solve.o sort.o swap.o test.o \
        ttable.o util.o version.o

   COMMON_DEPS = atak.o book.o genmove.o hash.o hung.o null.o \
                 output.o pgn.o quiesce.o random.o repeat.o \
                 solve.o sort.o swap.o test.o ttable.o util.o

 $(COMMON_DEPS) : common.h
   book.o pgn.o : book.h
   pgn.o : version.h

  chess : $(OBJECTS)
        gcc -o chess $(OBJECTS)

.PHONEY : dust
  dust :
        -rm chess $(OBJECTS)
----------------------------------EOF---------------------------------------

I got the foll output--
C:\djgpp\openproj1\gnuchess-5.04\src>make
gcc    -c -o atak.o atak.c
In file included from common.h:638,
                 from atak.c:29:
inlines.h: In function `leadz':
inlines.h:43: warning: right shift count >= width of type
inlines.h:43: warning: right shift count >= width of type
inlines.h:44: warning: right shift count >= width of type
inlines.h:44: warning: right shift count >= width of type
inlines.h: In function `nbits':
inlines.h:57: warning: right shift count >= width of type
inlines.h:57: warning: right shift count >= width of type
--------------------------------------------------------------
make stops here .................
I dont understand the foll code & it doesnt work in DJGPP.
--------------inlines.h-----------------------! -------
static inline unsigned char leadz (BitBoard b)
/********
 *
 *  Returns the leading bit in a bitboard. 
 *Leftmost bit is 0 and
 *  rightmost bit is 63.  Thanks to Robert Hyatt for
 *this algorithm.
 *
****/
{
  if (b >> 48) return lzArray[b >> 48];
  if (b >> 32) return lzArray[b >> 32] + 16;
  if (b >> 16) return lzArray[b >> 16] + 32;
  return lzArray[b] + 48;
}

----------------EOF-----------------------------------
ANy help please ??

thanx
badri

 



Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
reply via email to

[Prev in Thread] Current Thread [Next in Thread]