Author: Uri Blass
Date: 07:29:52 12/30/05
Go up one level in this thread
On December 30, 2005 at 09:58:55, Roman Hartmann wrote:
>On December 30, 2005 at 09:32:25, Uri Blass wrote:
>
>>I am starting to look at the differences between toga and fruit
>>Note that I asked in the past about differences and got no response about it.
>>
>>Note that I had no idea how to detect them fast but thanks to dann corbit that
>>sent me the link that I give also in this post I can detect the differences in a
>>reasonable time inspite of the fact that I probably need to compare every file
>>only to get the response that the selected files are identical in most case but
>>fortunately doing it is only few seconds for a file so I guess that I am going
>>to spend only 15-20 minutes in getting the response the selected files are
>>identical
>
>Can you actually compile the sources?
>I only ask because I was once asked to compile the Toga Sources for someone and
>I had to get rid of quite some stuff before I was actually able to compile the
>sources.
>
>Roman
>
>[snip]
No
I cannot do it
For example I get the following errors
d:\distribute_1.1a\src\material.cpp(144) : error C2061: syntax error :
identifier 'key'
d:\distribute_1.1a\src\material.cpp(144) : error C2066: cast to function type is
illegal
d:\distribute_1.1a\src\material.cpp(144) : error C2107: illegal index,
indirection not allowed
d:\distribute_1.1a\src\material.cpp(144) : error C2102: '&' requires l-value
Note that in order to get rid of errors I need to change
entry = &Material->table[KEY_INDEX(key)&Material->mask];
to
entry = &Material->table[uint32(key)&Material->mask];
hash.h of toga and fruit have
#define KEY_INDEX(key) (uint32(key)) but the compiler of visual C++6 seem to
have bugs so it does not understand it.
I have the same problem in pawn.cpp and I need to replace
entry = &Pawn->table[KEY_INDEX(key)&Pawn->mask];
by
entry = &Pawn->table[uint32(key)&Pawn->mask];
I have also the same problem in trans.cpp
After replacing all the KEY_INDEX I get no problems and only warning when I
compile toga(same problem was also in fruit).
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.