GunshipPenguin / shallow-blue

UCI Chess engine written in C++11
MIT License
66 stars 13 forks source link

`make` fails #1

Closed Xyene closed 7 years ago

Xyene commented 7 years ago
xyene@lycan:~/chess$ make
mkdir obj
g++ -Wall -std=c++11 -g -c -o obj/zkey.o src/zkey.cc
g++ -Wall -std=c++11 -g -c -o obj/transptable.o src/transptable.cc
g++ -Wall -std=c++11 -g -c -o obj/board.o src/board.cc
g++ -Wall -std=c++11 -g -c -o obj/cmove.o src/cmove.cc
g++ -Wall -std=c++11 -g -c -o obj/psquaretable.o src/psquaretable.cc
g++ -Wall -std=c++11 -g -c -o obj/movegen.o src/movegen.cc
g++ -Wall -std=c++11 -g -c -o obj/main.o src/main.cc
g++ -Wall -std=c++11 -g -c -o obj/raytable.o src/raytable.cc
g++ -Wall -std=c++11 -g -c -o obj/search.o src/search.cc
src/search.cc: In member function ‘CMove Search::rootMax(const Board&, int)’:
src/search.cc:64:49: error: no matching function for call to ‘TranspTable::set(ZKey, int&, int&)’
       _tt.set(movedBoard.getZKey(), score, depth);
                                                 ^
In file included from src/search.h:8:0,
                 from src/search.cc:2:
src/transptable.h:16:8: note: candidate: void TranspTable::set(ZKey, int, int, TranspTable::Flag)
   void set(ZKey, int, int, Flag);
        ^
src/transptable.h:16:8: note:   candidate expects 4 arguments, 3 provided
src/search.cc:73:38: error: no matching function for call to ‘TranspTable::set(ZKey, int&, int&)’
   _tt.set(board.getZKey(), max, depth);
                                      ^
In file included from src/search.h:8:0,
                 from src/search.cc:2:
src/transptable.h:16:8: note: candidate: void TranspTable::set(ZKey, int, int, TranspTable::Flag)
   void set(ZKey, int, int, Flag);
        ^
src/transptable.h:16:8: note:   candidate expects 4 arguments, 3 provided
src/search.cc: In member function ‘int Search::negaMax(const Board&, int, int, int)’:
src/search.cc:91:49: error: no matching function for call to ‘TranspTable::set(ZKey, int&, int&)’
       _tt.set(movedBoard.getZKey(), score, depth);
                                                 ^
In file included from src/search.h:8:0,
                 from src/search.cc:2:
src/transptable.h:16:8: note: candidate: void TranspTable::set(ZKey, int, int, TranspTable::Flag)
   void set(ZKey, int, int, Flag);
        ^
src/transptable.h:16:8: note:   candidate expects 4 arguments, 3 provided
Makefile:29: recipe for target 'obj/search.o' failed
make: *** [obj/search.o] Error 1
GunshipPenguin commented 7 years ago

Fixed.