Crafty-22.4 compiling problem

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

Cardoso
Posts: 363
Joined: Thu Mar 16, 2006 7:39 pm
Location: Portugal
Full name: Alvaro Cardoso

Crafty-22.4 compiling problem

Post by Cardoso »

Hi,
in chess.h we have
#if !defined(TYPES_INCLUDED)
# include "lock.h"

but this does not compile.
If I move it back to where it was in version 22.1, after the line
# define MAX_BLOCKS MAX_BLOCKS_PER_CPU*CPUS
# include "lock.h"

now it compiles ok.

Does this happens to others?
BTW I use MSVC 2008.

Thanks,
Alvaro
User avatar
Denis P. Mendoza
Posts: 415
Joined: Fri Dec 15, 2006 9:46 pm
Location: Philippines

Re: Crafty-22.4 compiling problem

Post by Denis P. Mendoza »

Yes, I did encounter that problem for Crafty 22.4!

I just added '#include <windows.h>' at lock.h and it compiled. I learned it from JA src (thanks). I haven't tried the new one yet.

Denis