As a technical note: With some edits, I was able to compile Stockfish 15 for Linux using an older c++17 version of gcc/g++, and it may even compile with c++14. There is one edit I would classify as not being minor---the rules of C++ as I see them require it:
In the file nnue/features/half_ka_v2_hm.cpp, you may need to insert the lines:
constexpr IndexType HalfKAv2_hm::PieceSquareIndex[COLOR_NB][PIECE_NB];
constexpr int HalfKAv2_hm::KingBuckets[64];
The reference that led me to this: https://stackoverflow.com/questions/801 ... texpr-char
Stockfish 15 is ready
Moderators: hgm, Rebel, chrisw
-
- Posts: 91
- Joined: Sat Nov 02, 2019 6:42 pm
- Full name: ɹǝƃɹǝqǝᗡ ǝɔnɹꓭ
Re: Stockfish 15 is ready
Looks good, add it to the listKWRegan wrote: ↑Mon May 02, 2022 12:12 am As a technical note: With some edits, I was able to compile Stockfish 15 for Linux using an older c++17 version of gcc/g++, and it may even compile with c++14. There is one edit I would classify as not being minor---the rules of C++ as I see them require it:
In the file nnue/features/half_ka_v2_hm.cpp, you may need to insert the lines:
constexpr IndexType HalfKAv2_hm::PieceSquareIndex[COLOR_NB][PIECE_NB];
constexpr int HalfKAv2_hm::KingBuckets[64];
The reference that led me to this: https://stackoverflow.com/questions/801 ... texpr-char
Small cleanup April 2022
https://github.com/official-stockfish/S ... /pull/3973