Crafty-22.2 compile failure

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

Moderator: Ras

zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Crafty-22.2 compile failure

Post by zullil »

If I include -DSKILL in my Makefile then compilation fails with

option.c(3429): error: identifier "reduce_depth" is undefined
reduce_depth = reduce_depth * skill / 100;
^

compilation aborted for crafty.c (code 2).

Without -DSKILL all is fine.
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Crafty-22.2 compile failure

Post by zullil »

zullil wrote:If I include -DSKILL in my Makefile then compilation fails with

option.c(3429): error: identifier "reduce_depth" is undefined
reduce_depth = reduce_depth * skill / 100;
^

compilation aborted for crafty.c (code 2).

Without -DSKILL all is fine.

Should that be

Code: Select all

LMR_depth = LMR_depth * skill / 100;
?
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Crafty-22.2 compile failure

Post by bob »

my error. "reduce_depth" should be "LMR_depth" now. I just fixed the source. Or you can replace both of the "reduce_depth" variables with "LMR_depth" and it will compile cleanly without downloading again.
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Crafty-22.2 compile failure

Post by zullil »

bob wrote:my error. "reduce_depth" should be "LMR_depth" now. I just fixed the source. Or you can replace both of the "reduce_depth" variables with "LMR_depth" and it will compile cleanly without downloading again.
Thanks. By the way, there's a typo in line 499 of option.c. It's utterly insignificant, but has existed for a long time.

Code: Select all

   Print(128, "don't.display statistics at end of each search.\n");
swami
Posts: 6664
Joined: Thu Mar 09, 2006 4:21 am

Re: Crafty-22.2 compile failure

Post by swami »

zullil wrote:
bob wrote:my error. "reduce_depth" should be "LMR_depth" now. I just fixed the source. Or you can replace both of the "reduce_depth" variables with "LMR_depth" and it will compile cleanly without downloading again.
Thanks. By the way, there's a typo in line 499 of option.c. It's utterly insignificant, but has existed for a long time.

Code: Select all

   Print(128, "don't.display statistics at end of each search.\n");
Nah, I don't care about such typos, since they don't affect playing strength of the engine but you might have a point :)
gerold
Posts: 10121
Joined: Thu Mar 09, 2006 12:57 am
Location: van buren,missouri

Re: Crafty-22.2 compile failure

Post by gerold »

bob wrote:my error. "reduce_depth" should be "LMR_depth" now. I just fixed the source. Or you can replace both of the "reduce_depth" variables with "LMR_depth" and it will compile cleanly without downloading again.
The last few version of Crafty including 22.2. I get message
crafty win.32 exe has stopped working. Before all other ones
worked. Don't know how to get Crafty to work in Arena 1.1

Thanks for any reply.

Best,

Gerold.