Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Nalimov code doesn't work with Forte

Author: David Rasmussen

Date: 03:40:00 01/19/03

Go up one level in this thread


On January 18, 2003 at 22:29:13, Robert Hyatt wrote:

>
>OK.. let's back up a minute.  You are using the egtb.cpp as distributed with
>Crafty?  And you are _not_ defining SMP?
>
>If you get an error, then you must be defining Lock() somewhere yourself???

It's defined in the lock.h file. But from your answer I get the feeling that
that is _your_ file, not Eugene's? If so, I'm sorry, but as you can read in
another post (which no one has answered), I don't know where to actually
officially get the files distributed by Eugene, even though he let me use it. So
I just took what seemed to be important from Crafty, that is: egtb.cpp, lock.h
and tbdecode.h. From your answer it seems that I don't need lock.h if I don't
use SMP (I don't yet). That seems logical, but as I regarded those three files
as a black box, I didn't really want to mess with anything. I just wanted to
know the interface of this black box. And I figured that out by looking at
Crafty's code.

Anyway, lock.h is encapsulated in an #if defined SMP, with an #else block that
defines those three macros to nothing. So it shouldn't be a real problem, it's
just that they're redefined (to the same) in egtb.cpp.

Anyway, disregarding the lock.h and the Lock etc. I still get the error. I am
beginning to think that maybe the libraries or header files of the Sun compiler
are installed incorrectly or something on the system I have access to. It says:

"/usr/include/sys/machtypes.h", line 37: Error: A declaration does not specify a
tag or an identifier.
"/usr/include/sys/machtypes.h", line 37: Error: Use ";" to terminate
declarations.
"/usr/include/sys/machtypes.h", line 37: Error: A declaration does not specify a
tag or an identifier.

The egtb files does not include machtypes.h directly, and even if they did,
there shouldn't be an error in the .h files. That must be Sun's problem. Or
what?

/David



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.