brainix / gray-matter

Automatically exported from code.google.com/p/gray-matter
0 stars 0 forks source link

Compile error revision 1308, fedora 8 linux, g++ 4.1.2 20070925 #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. svn co
2. make

What is the expected output? What do you see instead?
Gray-matter compiled successfully.

What version of the product are you using? On what operating system?
Current subversion revision 1308, Fedora 8.

Please provide any additional information below.

The (below) error also made me thinking (though I really haven't dug into
the code yet, so sorry if it's a silly remark). But line 1294 and 1295
(revision 1308), are those correct?
The way I understood it, the x and y in squares_pawn_attacks[color][x][y]
are the 'from' coordinates.
So why can't squares_pawn_attacks[WHITE][x][1] attack squares and likewise
for [BLACK][x][6]?
Again, maybe I should read better before I mail, but at least this gives me
the opportunity to say:

Great job, all, and thanks,
jonne.

g++ -c -o bin/board_base.o src/board_base.cpp -ansi -Wall -Werror -O3
-fomit-frame-pointer -DLINUX -Iinc -march=pentium3
src/board_base.cpp: In member function 'virtual void
board_base::precomp_pawn() const':
src/board_base.cpp:1300: error: incompatible types in assignment of 'long
long unsigned int' to 'bitboard_t [2][8][8]'
src/board_base.cpp:1301: error: invalid operands of types 'bitboard_t
[2][8][8]' and 'bitboard_t' to binary 'operator&'
src/board_base.cpp:1301: error:   in evaluation of 'operator&=(bitboard_t
[2][8][8], bitboard_t)'
make: *** [bin/board_base.o] Error 1

Original issue reported on code.google.com by jonne.z...@gmail.com on 17 Nov 2007 at 5:44

GoogleCodeExporter commented 9 years ago
Cool, I'm playing a game against it :))
I'd like to hear your comments on my patch.
Be very careful, as I don't really (yet) know what I'm doing :))
Have a nice day.

Original comment by jonne.z...@gmail.com on 17 Nov 2007 at 5:59

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by jonne.z...@gmail.com on 19 Nov 2007 at 9:12

GoogleCodeExporter commented 9 years ago

Original comment by brainix on 31 Jan 2008 at 9:28