Author: Robert Hyatt
Date: 11:37:22 01/21/03
Go up one level in this thread
On January 21, 2003 at 07:17:21, David Rasmussen wrote: >On January 19, 2003 at 13:43:35, Robert Hyatt wrote: > >> >>Look for another directory with that file. ie >> >>find / -name machtypes.h -print >> >>and then force gcc to look there with the -I option to see if that >>fixes it. >> >>I have seen this when I had multiple compilers installed on the same box and >>the include directories get confused. > >I found the problem. > >In the beginning of egtb.cpp: > >#if !defined(SMP) && !defined(SUN) >#define lock_t int >#endif > >The problem is that for at least a year or so, the Sun Workshop Pro compiler (or >whatever they call it now adays) does _not_ #define SUN. Instead it defines sun >and __sun (all but the last are ugly IMO). So lock_t is #defined even on SUN, >and that causes problems in the aforementioned header file (which I guess is why >Eugene put this in in the first place). I guess I should tell Eugene about this. > >The other problem, Lock() etc. being redefined in egtb.cpp after being defined >in lock.h, is a "real" problem of those files. On most compilers it's not a >problem, I guess. And I still don't know if the lock.h file is yours or >Eugene's? > >/David lock.h is a part of crafty and is mine. It isn't even included in egtb.cpp normally...
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.