Article View: gnu.chess
Article #5484Compile error for gnuchess
From: david
Date: Wed, 25 Aug 1993 01:05
Date: Wed, 25 Aug 1993 01:05
34 lines
1990 bytes
1990 bytes
Help. I'm running Solaris 2.2 on a sparcstation2 and am trying to
compile gnuchess4.0p62 . I get the following error:
cc -DCACHE -DGDX -DHASGETTIMEOFDAY -DHISTORY -DNULLMOVE -DOLDTIME -DQUIETBACKGROUND -DSEMIQUIETBOOKGEN -O4 -DHASHFILE=\"/u/local/gnuchess.hash\" -DLANGFILE=\"/u/local/gnuchess.lang\" -DBOOK=\"/u/local/gnuchess.book\" -DBINBOOK=\"/u/local/gnuchess.data\" -c main.c
"./gnuchess.h", line 460: syntax error, probably missing ",", ";" or "="
"./gnuchess.h", line 460: syntax error before or at: *
"./gnuchess.h", line 460: warning: old-style declaration; add "int"
"main.c", line 55: syntax error, probably missing ",", ";" or "="
"main.c", line 55: cannot recover from previous errors
I've traced it to the following set of lines in gnuchess.h :
28: #ifndef __GNUC__
29: #define inline
30: #else
31: #define huge
32: #endif
Apparently __GNUC__ needs to be defined. Am I missing something or is
this a bug ? If it is a bug, is there a simple patch ?
Thanks in advance,
--
David
=====================================================================
David Brusowankin Market Vision
US Mail 40 Rector Street, 18th Floor, NYC 10006
UUCP mvision!david@uu.psi.com
Internet david@mvision.com
Work Phone 212.227.1610 ext 334
Fax 212.233.1430
Technical Details
Message-ID:
<DAVID.93Aug24200540@ocelot.mvision.com>Path:
arc1-ca.pugleaf.net!gmd.de!rrz.uni-koeln.de!unidui!math.fu-berlin.de!news.rrz.uni-hamburg.de!news.dkrz.de!dscomsa!dxcern!mcsun!uknet!doc.ic.ac.uk!agate!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!psinntp!netnews.mvision.com!netnews!davidShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d71d,dd231b3d8d79d2c0,start X-Google-Attributes: gid10d71d,public X-Google-ArrivalTime: 1993-08-24 20:06:57 PST Newsgroups: gnu.chess Path: arc1-ca.pugleaf.net!gmd.de!rrz.uni-koeln.de!unidui!math.fu-berlin.de!news.rrz.uni-hamburg.de!news.dkrz.de!dscomsa!dxcern!mcsun!uknet!doc.ic.ac.uk!agate!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!psinntp!netnews.mvision.com!netnews!david From: david@ocelot.mvision.com Subject: Compile error for gnuchess Message-ID: <DAVID.93Aug24200540@ocelot.mvision.com> Sender: news@mvision.com Organization: Market Vision Inc. Distribution: gnu.chess Date: Wed, 25 Aug 1993 01:05:40 GMT Lines: 34