Article View: gnu.chess
Article #3608Re: Compiling GNUChess
From: Peter Herttrich
Date: Tue, 25 Feb 1997 00:00
Date: Tue, 25 Feb 1997 00:00
39 lines
2226 bytes
2226 bytes
In gnu.chess Jan-Frode Myklebust <s768@ugress.uib.no> wrote:
: I am trying to compile gnuchess under linux, but I get an error during the compiling. I have gcc 2.7.2 and linux kernel 2.0.29. The error I get is:
: gcc -I. -O2 -DHAVE_LIBTERMCAP=1 -DHAVE_LIBCURSES=1 -DHAVE_FCNTL_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DSIZEOF_LONG=4 -DRETSIGTYPE=void -DHAVE_GETTIMEOFDAY=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_MEMSET=1 -DHAVE_SETVBUF=1 -DUSEINT -DCACHE -DGDX -DNULLMOVE -DWAY4PL64 -DHISTORY -DAGING -DKILLT -DUNLIMITEDCAPS -DPRUNE -DOLDTIME -DECO -DHASHSTATS -DHASHFILE=\"/usr/local/lib/gnuchess.hash\" -DLANGFILE=\"/usr/local/lib/gnuche
ss
: .lang\" -DSRCLANGFILE=\"./../misc/gnuchess.lang\" -o gnuchess mainN.o bookN.o genmovesN.o ataks.o utilN.o evalN.o init.o searchN.o dspcomN.o uxdsp.o -lcurses -ltermcap -lm
: dspcomN.o: In function `InputCommand':
: dspcomN.o(.text+0x1c7e): undefined reference to `wgetnstr'
: uxdsp.o: In function `SelectLevel':
: uxdsp.o(.text+0x12b2): undefined reference to `wgetnstr'
: make: *** [gnuchess] Error 1
: Can somebody please help me??
hello,
change in the Makefile the line
LIBS = -lcurses -ltermcap -lm
to
LIBS = -lncurses -ltermcap -lm
This should work.
cheerio
peter
--
--
_____________________________________________________________________________
Peter Herttrich email: dh1iar@inss1.etec.uni-karlsruhe.de
Universitaet Karlsruhe Tel. +49 721 6083747 FAX +49 721 6086071
Institut fuer Nachrichtentechnik ..life outside caves is complicated ...
_____________________________________________________________________________
Technical Details
Message-ID:
<5eunoi$42s$1@nz12.rz.uni-karlsruhe.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<5eud1d$gfm$1@toralf.uib.no>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d71d,fa953d10a07e58b8 X-Google-Attributes: gid10d71d,public From: Peter Herttrich <dh1iar@inss1.etec.uni-karlsruhe.de> Subject: Re: Compiling GNUChess Date: 1997/02/25 Message-ID: <5eunoi$42s$1@nz12.rz.uni-karlsruhe.de> X-Deja-AN: 221308383 References: <5eud1d$gfm$1@toralf.uib.no> Content-Type: text/plain; charset=iso-8859-1 Organization: University of Karlsruhe, Germany Mime-Version: 1.0 Newsgroups: gnu.chess