Author: Uri Blass
Date: 04:58:30 01/25/06
Go up one level in this thread
On January 25, 2006 at 07:42:03, Bernhard Bauer wrote: >Hi, >this has been discussed allready, but I couln't find the comments. >When compiling fruit with the MS compiler I get some errors. >How have I to change the definitions to get rid of these errors? > >material.cpp >material.cpp(137) : error C2061: Syntaxfehler : Bezeichner 'key' >material.cpp(137) : error C2066: Typumwandlung in Funktionstyp nicht erlaubt >material.cpp(137) : error C2107: Ungueltiger Index, Zeigeroperation nicht >erlaubt >material.cpp(137) : error C2102: '&' erwartet L-Wert >NMAKE : fatal error U1077: 'cl' : Rueckgabe-Code '0x2' >Stop. > >Kind regards >Bernhard try to replace entry = &Material->table[KEY_INDEX(key)&Material->mask]; by entry = &Material->table[uint32(key)&Material->mask]; Note that fruit has in hash.h #define KEY_INDEX(key) (uint32(key)) The problem is that this definition is too complex for the stupid compiler that I use to understand it. Uri
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.