Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Compiling crafty 17.5

Author: Alexander Kure

Date: 16:12:01 12/20/99

Go up one level in this thread


On December 20, 1999 at 10:29:14, Joshua Lee wrote:

>well there's one problem , my compiler say's that there are errors in the sorce
>code. From what i know about C(little but some programming classes) the problem
>lies in a if then else statement, this was in a header file chess.h and a few
>others
>
>#if defined(HAS_64BITS)
>  typedef unsigned long BITBOARD;
>
>#else
>#  if defined(NT_i386) || defined(NT_AXP)
>    typedef unsigned __int64 BITBOARD;
>
>#  else
>    typedef unsigned long BITBOARD;

---------------------^ long missing

>#  endif
>#endif
>
>well , this telling the program to go in circles, the else has to be changed to
>something else i think. Or maybe Microsoft visuall C++ 6.0 is wrong? Anyhow i
>would like to learn more, i don't think one B is going to make me an expert.
>if anyone could shed some light on this that would be cool
>Thankyou
>merry christmas,merry haunakkah and
>happy new year


Hi Joshua,

I was curious, so i downloaded crafty 17.5 and tried to compile it (never did
this before) in VC++ 6.0 creating a new project from scratch (without using the
shipped Makefile.Nt) adding all files but dgt.c and dgtdrv.c.

First error was:

chess.h(217) : error C2632: 'long' followed by 'long' is illegal

which pointed to the same code you gave above. So i said well, add the
preprocessor definition 'NT_i386' to the project settings, so that the type
__int64 is used for BITBOARD and simsalabim ... it compiled.

Hope this helps.

Greetings
Alex



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.