Config: debug: 'no' sanitize: 'none' optimize: 'yes' arch: 'x86_64' bits: '64' kernel: 'MSYS_NT-10.0-26100' os: 'Windows_NT' prefetch: 'yes' popcnt: 'yes' pext: 'no' sse: 'yes' mmx: 'no' sse2: 'yes' ssse3: 'yes' sse41: 'yes' avx2: 'yes' avxvnni: 'no' avx512: 'no' vnni256: 'no' vnni512: 'no' neon: 'no' dotprod: 'no' arm_version: '0' target_windows: 'yes' Flags: CXX: g++ CXXFLAGS: -Wall -Wcast-qual -fno-exceptions -std=c++17 -pedantic -Wextra -Wshadow -Wmissing-declarations -m64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -DUSE_AVX2 -mavx2 -mbmi -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DARCH=x86-64-avx2 -flto -flto-partition=one -DEvalFileDefaultNameBig="C:/openbench-local/OpenBench/client/Networks/1C000000" -DEvalFileDefaultNameSmall="nn-37f18f62d772.nnue" LDFLAGS: -m64 -Wl,--no-as-needed -static -lpthread -Wall -Wcast-qual -fno-exceptions -std=c++17 -pedantic -Wextra -Wshadow -Wmissing-declarations -m64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -DUSE_AVX2 -mavx2 -mbmi -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DARCH=x86-64-avx2 -flto -flto-partition=one -DEvalFileDefaultNameBig="C:/openbench-local/OpenBench/client/Networks/1C000000" -DEvalFileDefaultNameSmall="nn-37f18f62d772.nnue" -flto=jobserver Testing config sanity. If this fails, try 'make help' ... make ARCH=x86-64-avx2 COMP=gcc all make[1]: Entering directory '/c/Users/BigZer/AppData/Local/Temp/tmpah7g8x3l/HypnoS/HypnoS-tmp/src' g++ -Wall -Wcast-qual -fno-exceptions -std=c++17 -pedantic -Wextra -Wshadow -Wmissing-declarations -m64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -DUSE_AVX2 -mavx2 -mbmi -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DARCH=x86-64-avx2 -flto -flto-partition=one -DEvalFileDefaultNameBig=\"C:/openbench-local/OpenBench/client/Networks/1C000000\" -DEvalFileDefaultNameSmall=\"nn-37f18f62d772.nnue\" -c -o benchmark.o benchmark.cpp g++ -Wall -Wcast-qual -fno-exceptions -std=c++17 -pedantic -Wextra -Wshadow -Wmissing-declarations -m64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -DUSE_AVX2 -mavx2 -mbmi -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DARCH=x86-64-avx2 -flto -flto-partition=one -DEvalFileDefaultNameBig=\"C:/openbench-local/OpenBench/client/Networks/1C000000\" -DEvalFileDefaultNameSmall=\"nn-37f18f62d772.nnue\" -c -o bitboard.o bitboard.cpp g++ -Wall -Wcast-qual -fno-exceptions -std=c++17 -pedantic -Wextra -Wshadow -Wmissing-declarations -m64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -DUSE_AVX2 -mavx2 -mbmi -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DARCH=x86-64-avx2 -flto -flto-partition=one -DEvalFileDefaultNameBig=\"C:/openbench-local/OpenBench/client/Networks/1C000000\" -DEvalFileDefaultNameSmall=\"nn-37f18f62d772.nnue\" -c -o evaluate.o evaluate.cpp g++ -Wall -Wcast-qual -fno-exceptions -std=c++17 -pedantic -Wextra -Wshadow -Wmissing-declarations -m64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -DUSE_AVX2 -mavx2 -mbmi -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DARCH=x86-64-avx2 -flto -flto-partition=one -DEvalFileDefaultNameBig=\"C:/openbench-local/OpenBench/client/Networks/1C000000\" -DEvalFileDefaultNameSmall=\"nn-37f18f62d772.nnue\" -c -o experience.o experience.cpp g++ -Wall -Wcast-qual -fno-exceptions -std=c++17 -pedantic -Wextra -Wshadow -Wmissing-declarations -m64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -DUSE_AVX2 -mavx2 -mbmi -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DARCH=x86-64-avx2 -flto -flto-partition=one -DEvalFileDefaultNameBig=\"C:/openbench-local/OpenBench/client/Networks/1C000000\" -DEvalFileDefaultNameSmall=\"nn-37f18f62d772.nnue\" -c -o main.o main.cpp g++ -Wall -Wcast-qual -fno-exceptions -std=c++17 -pedantic -Wextra -Wshadow -Wmissing-declarations -m64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -DUSE_AVX2 -mavx2 -mbmi -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DARCH=x86-64-avx2 -flto -flto-partition=one -DEvalFileDefaultNameBig=\"C:/openbench-local/OpenBench/client/Networks/1C000000\" -DEvalFileDefaultNameSmall=\"nn-37f18f62d772.nnue\" -c -o misc.o misc.cpp g++ -Wall -Wcast-qual -fno-exceptions -std=c++17 -pedantic -Wextra -Wshadow -Wmissing-declarations -m64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -DUSE_AVX2 -mavx2 -mbmi -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DARCH=x86-64-avx2 -flto -flto-partition=one -DEvalFileDefaultNameBig=\"C:/openbench-local/OpenBench/client/Networks/1C000000\" -DEvalFileDefaultNameSmall=\"nn-37f18f62d772.nnue\" -c -o movegen.o movegen.cpp g++ -Wall -Wcast-qual -fno-exceptions -std=c++17 -pedantic -Wextra -Wshadow -Wmissing-declarations -m64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -DUSE_AVX2 -mavx2 -mbmi -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DARCH=x86-64-avx2 -flto -flto-partition=one -DEvalFileDefaultNameBig=\"C:/openbench-local/OpenBench/client/Networks/1C000000\" -DEvalFileDefaultNameSmall=\"nn-37f18f62d772.nnue\" -c -o movepick.o movepick.cpp g++ -Wall -Wcast-qual -fno-exceptions -std=c++17 -pedantic -Wextra -Wshadow -Wmissing-declarations -m64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -DUSE_AVX2 -mavx2 -mbmi -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DARCH=x86-64-avx2 -flto -flto-partition=one -DEvalFileDefaultNameBig=\"C:/openbench-local/OpenBench/client/Networks/1C000000\" -DEvalFileDefaultNameSmall=\"nn-37f18f62d772.nnue\" -c -o position.o position.cpp g++ -Wall -Wcast-qual -fno-exceptions -std=c++17 -pedantic -Wextra -Wshadow -Wmissing-declarations -m64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -DUSE_AVX2 -mavx2 -mbmi -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DARCH=x86-64-avx2 -flto -flto-partition=one -DEvalFileDefaultNameBig=\"C:/openbench-local/OpenBench/client/Networks/1C000000\" -DEvalFileDefaultNameSmall=\"nn-37f18f62d772.nnue\" -c -o search.o search.cpp g++ -Wall -Wcast-qual -fno-exceptions -std=c++17 -pedantic -Wextra -Wshadow -Wmissing-declarations -m64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -DUSE_AVX2 -mavx2 -mbmi -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DARCH=x86-64-avx2 -flto -flto-partition=one -DEvalFileDefaultNameBig=\"C:/openbench-local/OpenBench/client/Networks/1C000000\" -DEvalFileDefaultNameSmall=\"nn-37f18f62d772.nnue\" -c -o thread.o thread.cpp g++ -Wall -Wcast-qual -fno-exceptions -std=c++17 -pedantic -Wextra -Wshadow -Wmissing-declarations -m64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -DUSE_AVX2 -mavx2 -mbmi -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DARCH=x86-64-avx2 -flto -flto-partition=one -DEvalFileDefaultNameBig=\"C:/openbench-local/OpenBench/client/Networks/1C000000\" -DEvalFileDefaultNameSmall=\"nn-37f18f62d772.nnue\" -c -o timeman.o timeman.cpp g++ -Wall -Wcast-qual -fno-exceptions -std=c++17 -pedantic -Wextra -Wshadow -Wmissing-declarations -m64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -DUSE_AVX2 -mavx2 -mbmi -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DARCH=x86-64-avx2 -flto -flto-partition=one -DEvalFileDefaultNameBig=\"C:/openbench-local/OpenBench/client/Networks/1C000000\" -DEvalFileDefaultNameSmall=\"nn-37f18f62d772.nnue\" -c -o tt.o tt.cpp g++ -Wall -Wcast-qual -fno-exceptions -std=c++17 -pedantic -Wextra -Wshadow -Wmissing-declarations -m64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -DUSE_AVX2 -mavx2 -mbmi -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DARCH=x86-64-avx2 -flto -flto-partition=one -DEvalFileDefaultNameBig=\"C:/openbench-local/OpenBench/client/Networks/1C000000\" -DEvalFileDefaultNameSmall=\"nn-37f18f62d772.nnue\" -c -o uci.o uci.cpp g++ -Wall -Wcast-qual -fno-exceptions -std=c++17 -pedantic -Wextra -Wshadow -Wmissing-declarations -m64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -DUSE_AVX2 -mavx2 -mbmi -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DARCH=x86-64-avx2 -flto -flto-partition=one -DEvalFileDefaultNameBig=\"C:/openbench-local/OpenBench/client/Networks/1C000000\" -DEvalFileDefaultNameSmall=\"nn-37f18f62d772.nnue\" -c -o ucioption.o ucioption.cpp g++ -Wall -Wcast-qual -fno-exceptions -std=c++17 -pedantic -Wextra -Wshadow -Wmissing-declarations -m64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -DUSE_AVX2 -mavx2 -mbmi -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DARCH=x86-64-avx2 -flto -flto-partition=one -DEvalFileDefaultNameBig=\"C:/openbench-local/OpenBench/client/Networks/1C000000\" -DEvalFileDefaultNameSmall=\"nn-37f18f62d772.nnue\" -c -o tune.o tune.cpp g++ -Wall -Wcast-qual -fno-exceptions -std=c++17 -pedantic -Wextra -Wshadow -Wmissing-declarations -m64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -DUSE_AVX2 -mavx2 -mbmi -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DARCH=x86-64-avx2 -flto -flto-partition=one -DEvalFileDefaultNameBig=\"C:/openbench-local/OpenBench/client/Networks/1C000000\" -DEvalFileDefaultNameSmall=\"nn-37f18f62d772.nnue\" -c -o tbprobe.o syzygy/tbprobe.cpp g++ -Wall -Wcast-qual -fno-exceptions -std=c++17 -pedantic -Wextra -Wshadow -Wmissing-declarations -m64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -DUSE_AVX2 -mavx2 -mbmi -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DARCH=x86-64-avx2 -flto -flto-partition=one -DEvalFileDefaultNameBig=\"C:/openbench-local/OpenBench/client/Networks/1C000000\" -DEvalFileDefaultNameSmall=\"nn-37f18f62d772.nnue\" -c -o evaluate_nnue.o nnue/evaluate_nnue.cpp g++ -Wall -Wcast-qual -fno-exceptions -std=c++17 -pedantic -Wextra -Wshadow -Wmissing-declarations -m64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -DUSE_AVX2 -mavx2 -mbmi -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DARCH=x86-64-avx2 -flto -flto-partition=one -DEvalFileDefaultNameBig=\"C:/openbench-local/OpenBench/client/Networks/1C000000\" -DEvalFileDefaultNameSmall=\"nn-37f18f62d772.nnue\" -c -o half_ka_v2_hm.o nnue/features/half_ka_v2_hm.cpp g++ -Wall -Wcast-qual -fno-exceptions -std=c++17 -pedantic -Wextra -Wshadow -Wmissing-declarations -m64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -DUSE_AVX2 -mavx2 -mbmi -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DARCH=x86-64-avx2 -flto -flto-partition=one -DEvalFileDefaultNameBig=\"C:/openbench-local/OpenBench/client/Networks/1C000000\" -DEvalFileDefaultNameSmall=\"nn-37f18f62d772.nnue\" -c -o book.o book/book.cpp g++ -Wall -Wcast-qual -fno-exceptions -std=c++17 -pedantic -Wextra -Wshadow -Wmissing-declarations -m64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -DUSE_AVX2 -mavx2 -mbmi -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DARCH=x86-64-avx2 -flto -flto-partition=one -DEvalFileDefaultNameBig=\"C:/openbench-local/OpenBench/client/Networks/1C000000\" -DEvalFileDefaultNameSmall=\"nn-37f18f62d772.nnue\" -c -o polyglot.o book/polyglot/polyglot.cpp g++ -Wall -Wcast-qual -fno-exceptions -std=c++17 -pedantic -Wextra -Wshadow -Wmissing-declarations -m64 -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -msse -msse3 -mpopcnt -DUSE_POPCNT -DUSE_AVX2 -mavx2 -mbmi -DUSE_SSE41 -msse4.1 -DUSE_SSSE3 -mssse3 -DUSE_SSE2 -msse2 -DARCH=x86-64-avx2 -flto -flto-partition=one -DEvalFileDefaultNameBig=\"C:/openbench-local/OpenBench/client/Networks/1C000000\" -DEvalFileDefaultNameSmall=\"nn-37f18f62d772.nnue\" -c -o ctg.o book/ctg/ctg.cpp search.cpp:67:1: error: 'LimitsType' does not name a type 67 | LimitsType Limits; | ^~~~~~~~~~ search.cpp:75:1: error: 'Depth' does not name a type 75 | Depth ProbeDepth; | ^~~~~ search.cpp:81:7: error: 'Eval' has not been declared 81 | using Eval::evaluate; | ^~~~ search.cpp:101:1: error: 'Value' does not name a type; did you mean 'pvalueW'? 101 | Value futility_margin(Depth d, bool noTtCutNode, bool improving, bool oppWorsening) { | ^~~~~ | pvalueW search.cpp:110:16: error: 'MAX_MOVES' was not declared in this scope; did you mean 'Hypnos::MAX_MOVES'? 110 | int Reductions[MAX_MOVES]; // [depth or moveNumber] | ^~~~~~~~~ | Hypnos::MAX_MOVES In file included from misc.h:43, from search.h:25, from search.cpp:19: types.h:108:15: note: 'Hypnos::MAX_MOVES' declared here 108 | constexpr int MAX_MOVES = 256; | ^~~~~~~~~ search.cpp:112:1: error: 'Depth' does not name a type 112 | Depth reduction(bool i, Depth d, int mn, int delta, int rootDelta) { | ^~~~~ search.cpp:118:51: error: 'Depth' has not been declared 118 | constexpr int futility_move_count(bool improving, Depth depth) { | ^~~~~ search.cpp:123:11: error: 'Value' does not name a type; did you mean 'pvalueW'? 123 | constexpr Value to_static_eval(const Value v) { | ^~~~~ | pvalueW search.cpp:128:16: error: 'Depth' was not declared in this scope; did you mean 'Hypnos::Depth'? 128 | int stat_bonus(Depth d) { return std::clamp(245 * d - 320, 0, 1296); } | ^~~~~ | Hypnos::Depth types.h:200:7: note: 'Hypnos::Depth' declared here 200 | using Depth = int; | ^~~~~ search.cpp:131:16: error: 'Depth' was not declared in this scope; did you mean 'Hypnos::Depth'? 131 | int stat_malus(Depth d) { return (d < 4 ? 554 * d - 303 : 1203); } | ^~~~~ | Hypnos::Depth types.h:200:7: note: 'Hypnos::Depth' declared here 200 | using Depth = int; | ^~~~~ search.cpp:134:1: error: 'Value' does not name a type; did you mean 'pvalueW'? 134 | Value value_draw(const Thread* thisThread) { | ^~~~~ | pvalueW search.cpp:155:23: error: 'Depth' has not been declared 155 | bool time_to_pick(Depth depth) const { return depth == 1 + int(level); } | ^~~~~ search.cpp:156:5: error: 'Move' does not name a type 156 | Move pick_best(size_t multiPV); | ^~~~ search.cpp:159:5: error: 'Move' does not name a type 159 | Move best = Move::none(); | ^~~~ search.cpp:165:1: error: 'Value' does not name a type; did you mean 'pvalueW'? 165 | Value search(Position& pos, Stack* ss, Value alpha, Value beta, Depth depth, bool cutNode); | ^~~~~ | pvalueW search.cpp:168:1: error: 'Value' does not name a type; did you mean 'pvalueW'? 168 | Value qsearch(Position& pos, Stack* ss, Value alpha, Value beta, Depth depth = 0); | ^~~~~ | pvalueW search.cpp:170:1: error: 'Value' does not name a type; did you mean 'pvalueW'? 170 | Value value_to_tt(Value v, int ply); | ^~~~~ | pvalueW search.cpp:171:1: error: 'Value' does not name a type; did you mean 'pvalueW'? 171 | Value value_from_tt(Value v, int ply, int r50c); | ^~~~~ | pvalueW search.cpp:172:7: error: variable or field 'update_pv' declared void 172 | void update_pv(Move* pv, Move move, const Move* childPv); | ^~~~~~~~~ search.cpp:172:17: error: 'Move' was not declared in this scope; did you mean 'Hypnos::Move'? 172 | void update_pv(Move* pv, Move move, const Move* childPv); | ^~~~ | Hypnos::Move types.h:429:7: note: 'Hypnos::Move' declared here 429 | class Move { | ^~~~ search.cpp:172:23: error: 'pv' was not declared in this scope; did you mean 'Hypnos::UCI::pv'? 172 | void update_pv(Move* pv, Move move, const Move* childPv); | ^~ | Hypnos::UCI::pv In file included from search.cpp:47: uci.h:85:13: note: 'Hypnos::UCI::pv' declared here 85 | std::string pv(const Position& pos, Depth depth); | ^~ search.cpp:172:27: error: 'Move' was not declared in this scope; did you mean 'Hypnos::Move'? 172 | void update_pv(Move* pv, Move move, const Move* childPv); | ^~~~ | Hypnos::Move types.h:429:7: note: 'Hypnos::Move' declared here 429 | class Move { | ^~~~ search.cpp:172:38: error: expected primary-expression before 'const' 172 | void update_pv(Move* pv, Move move, const Move* childPv); | ^~~~~ search.cpp:173:7: error: variable or field 'update_continuation_histories' declared void 173 | void update_continuation_histories(Stack* ss, Piece pc, Square to, int bonus); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ search.cpp:173:37: error: 'Stack' was not declared in this scope; did you mean 'Hypnos::Search::Stack'? 173 | void update_continuation_histories(Stack* ss, Piece pc, Square to, int bonus); | ^~~~~ | Hypnos::Search::Stack search.h:39:8: note: 'Hypnos::Search::Stack' declared here 39 | struct Stack { | ^~~~~ search.cpp:173:44: error: 'ss' was not declared in this scope 173 | void update_continuation_histories(Stack* ss, Piece pc, Square to, int bonus); | ^~ search.cpp:173:48: error: 'Piece' was not declared in this scope; did you mean 'Hypnos::Piece'? 173 | void update_continuation_histories(Stack* ss, Piece pc, Square to, int bonus); | ^~~~~ | Hypnos::Piece types.h:179:6: note: 'Hypnos::Piece' declared here 179 | enum Piece { | ^~~~~ search.cpp:173:58: error: 'Square' was not declared in this scope; did you mean 'Hypnos::Square'? 173 | void update_continuation_histories(Stack* ss, Piece pc, Square to, int bonus); | ^~~~~~ | Hypnos::Square types.h:212:6: note: 'Hypnos::Square' declared here 212 | enum Square : int { | ^~~~~~ search.cpp:173:69: error: expected primary-expression before 'int' 173 | void update_continuation_histories(Stack* ss, Piece pc, Square to, int bonus); | ^~~ search.cpp:174:32: error: 'Position' does not name a type 174 | void update_quiet_stats(const Position& pos, Stack* ss, Move move, int bonus); | ^~~~~~~~ search.cpp:174:47: error: 'Stack' has not been declared 174 | void update_quiet_stats(const Position& pos, Stack* ss, Move move, int bonus); | ^~~~~ search.cpp:174:58: error: 'Move' has not been declared 174 | void update_quiet_stats(const Position& pos, Stack* ss, Move move, int bonus); | ^~~~ search.cpp:175:30: error: 'Position' does not name a type 175 | void update_all_stats(const Position& pos, | ^~~~~~~~ search.cpp:176:24: error: 'Stack' has not been declared 176 | Stack* ss, | ^~~~~ search.cpp:177:24: error: 'Move' has not been declared 177 | Move bestMove, | ^~~~ search.cpp:178:24: error: 'Value' has not been declared 178 | Value bestValue, | ^~~~~ search.cpp:179:24: error: 'Value' has not been declared 179 | Value beta, | ^~~~~ search.cpp:180:24: error: 'Square' has not been declared 180 | Square prevSq, | ^~~~~~ search.cpp:181:24: error: 'Move' has not been declared 181 | Move* quietsSearched, | ^~~~ search.cpp:183:24: error: 'Move' has not been declared 183 | Move* capturesSearched, | ^~~~ search.cpp:185:24: error: 'Depth' has not been declared 185 | Depth depth); | ^~~~~ search.cpp:190:16: error: 'Position' was not declared in this scope; did you mean 'Hypnos::Position'? 190 | uint64_t perft(Position& pos, Depth depth) { | ^~~~~~~~ | Hypnos::Position In file included from movepick.h:32, from search.h:26: position.h:80:7: note: 'Hypnos::Position' declared here 80 | class Position { | ^~~~~~~~ search.cpp:190:26: error: 'pos' was not declared in this scope; did you mean 'pow'? 190 | uint64_t perft(Position& pos, Depth depth) { | ^~~ | pow search.cpp:190:31: error: 'Depth' was not declared in this scope; did you mean 'Hypnos::Depth'? 190 | uint64_t perft(Position& pos, Depth depth) { | ^~~~~ | Hypnos::Depth types.h:200:7: note: 'Hypnos::Depth' declared here 200 | using Depth = int; | ^~~~~ search.cpp:190:42: error: expression list treated as compound expression in initializer [-fpermissive] 190 | uint64_t perft(Position& pos, Depth depth) { | ^ search.cpp:190:43: error: expected ';' before '{' token 190 | uint64_t perft(Position& pos, Depth depth) { | ^~ | ; search.cpp:219:19: error: 'void Search::init()' should have been declared inside 'Search' 219 | void Search::init() { | ^ search.cpp:219:6: warning: no previous declaration for 'void Search::init()' [-Wmissing-declarations] 219 | void Search::init() { | ^~~~~~ search.cpp: In function 'void Search::init()': search.cpp:221:25: error: 'MAX_MOVES' was not declared in this scope; did you mean 'Hypnos::MAX_MOVES'? 221 | for (int i = 1; i < MAX_MOVES; ++i) | ^~~~~~~~~ | Hypnos::MAX_MOVES types.h:108:15: note: 'Hypnos::MAX_MOVES' declared here 108 | constexpr int MAX_MOVES = 256; | ^~~~~~~~~ search.cpp:222:9: error: 'Reductions' was not declared in this scope 222 | Reductions[i] = int((20.37 + std::log(Threads.size()) / 2) * std::log(i)); | ^~~~~~~~~~ search.cpp:222:47: error: 'Threads' was not declared in this scope; did you mean 'Hypnos::Threads'? 222 | Reductions[i] = int((20.37 + std::log(Threads.size()) / 2) * std::log(i)); | ^~~~~~~ | Hypnos::Threads In file included from search.cpp:44: thread.h:134:19: note: 'Hypnos::Threads' declared here 134 | extern ThreadPool Threads; | ^~~~~~~ search.cpp: At global scope: search.cpp:227:20: error: 'void Search::clear()' should have been declared inside 'Search' 227 | void Search::clear() { | ^ search.cpp:227:6: warning: no previous declaration for 'void Search::clear()' [-Wmissing-declarations] 227 | void Search::clear() { | ^~~~~~ search.cpp: In function 'void Search::clear()': search.cpp:229:5: error: 'Threads' was not declared in this scope; did you mean 'Hypnos::Threads'? 229 | Threads.main()->wait_for_search_finished(); | ^~~~~~~ | Hypnos::Threads thread.h:134:19: note: 'Hypnos::Threads' declared here 134 | extern ThreadPool Threads; | ^~~~~~~ search.cpp:231:5: error: 'Time' was not declared in this scope; did you mean 'Hypnos::Time'? 231 | Time.availableNodes = 0; | ^~~~ | Hypnos::Time In file included from search.cpp:45: timeman.h:50:23: note: 'Hypnos::Time' declared here 50 | extern TimeManagement Time; | ^~~~ search.cpp:232:5: error: 'TT' was not declared in this scope; did you mean 'Hypnos::TT'? 232 | TT.clear(); | ^~ | Hypnos::TT In file included from search.cpp:46: tt.h:106:27: note: 'Hypnos::TT' declared here 106 | extern TranspositionTable TT; | ^~ search.cpp:234:17: error: 'init' is not a member of 'Tablebases' 234 | Tablebases::init(Options["SyzygyPath"]); // Free mapped files | ^~~~ search.cpp:234:17: note: suggested alternatives: search.cpp:219:6: note: 'Search::init' 219 | void Search::init() { | ^~~~~~ In file included from search.cpp:36: experience.h:212:6: note: 'Experience::init' 212 | void init(); | ^~~~ misc.h:191:6: note: 'Hypnos::CommandLine::init' 191 | void init(int argc, char* argv[]); | ^~~~ misc.h:201:19: note: 'Hypnos::SysInfo::init' 201 | void init(); | ^~~~ misc.h:226:6: note: 'Hypnos::Utility::init' 226 | void init(const char* arg0); | ^~~~ In file included from position.h:28: bitboard.h:35:13: note: 'Hypnos::Bitboards::init' 35 | void init(); | ^~~~ search.h:108:6: note: 'Hypnos::Search::init' 108 | void init(); | ^~~~ In file included from search.cpp:43: syzygy/tbprobe.h:50:10: note: 'Hypnos::Tablebases::init' 50 | void init(const std::string& paths); | ^~~~ uci.h:79:13: note: 'Hypnos::UCI::init' 79 | void init(OptionsMap&); | ^~~~ In file included from search.cpp:48: book/book.h:70:6: note: 'Hypnos::Book::init' 70 | void init(); | ^~~~ In file included from search.cpp:35: evaluate.h:53:6: note: 'Hypnos::Eval::NNUE::init' 53 | void init(); | ^~~~ search.cpp:234:22: error: 'Options' was not declared in this scope; did you mean 'Hypnos::Options'? 234 | Tablebases::init(Options["SyzygyPath"]); // Free mapped files | ^~~~~~~ | Hypnos::Options uci.h:91:24: note: 'Hypnos::Options' declared here 91 | extern UCI::OptionsMap Options; | ^~~~~~~ search.cpp: At global scope: search.cpp:243:6: error: 'MainThread' has not been declared 243 | void MainThread::search() { | ^~~~~~~~~~ search.cpp:243:6: warning: no previous declaration for 'void search()' [-Wmissing-declarations] search.cpp: In function 'void search()': search.cpp:245:9: error: 'Limits' was not declared in this scope; did you mean 'Hypnos::Search::Limits'? 245 | if (Limits.perft) | ^~~~~~ | Hypnos::Search::Limits search.h:106:19: note: 'Hypnos::Search::Limits' declared here 106 | extern LimitsType Limits; | ^~~~~~ search.cpp:247:9: error: 'nodes' was not declared in this scope 247 | nodes = perft<true>(rootPos, Limits.perft); | ^~~~~ search.cpp:247:29: error: 'rootPos' was not declared in this scope 247 | nodes = perft<true>(rootPos, Limits.perft); | ^~~~~~~ search.cpp:247:50: error: '{anonymous}::perft<true>' cannot be used as a function 247 | nodes = perft<true>(rootPos, Limits.perft); | ^ misc.h:81:32: error: 'IO_LOCK' was not declared in this scope; did you mean 'Hypnos::IO_LOCK'? 81 | #define sync_cout std::cout << IO_LOCK | ^~~~~~~ search.cpp:248:9: note: in expansion of macro 'sync_cout' 248 | sync_cout << "\nNodes searched: " << nodes << "\n" << sync_endl; | ^~~~~~~~~ misc.h:76:5: note: 'Hypnos::IO_LOCK' declared here 76 | IO_LOCK, | ^~~~~~~ misc.h:82:32: error: 'IO_UNLOCK' was not declared in this scope; did you mean 'Hypnos::IO_UNLOCK'? 82 | #define sync_endl std::endl << IO_UNLOCK | ^~~~~~~~~ search.cpp:248:63: note: in expansion of macro 'sync_endl' 248 | sync_cout << "\nNodes searched: " << nodes << "\n" << sync_endl; | ^~~~~~~~~ misc.h:77:5: note: 'Hypnos::IO_UNLOCK' declared here 77 | IO_UNLOCK | ^~~~~~~~~ search.cpp:255:11: error: 'Color' does not name a type 255 | const Color us = rootPos.side_to_move(); | ^~~~~ search.cpp:256:5: error: 'Time' was not declared in this scope; did you mean 'Hypnos::Time'? 256 | Time.init(Limits, us, rootPos.game_ply()); | ^~~~ | Hypnos::Time timeman.h:50:23: note: 'Hypnos::Time' declared here 50 | extern TimeManagement Time; | ^~~~ search.cpp:256:15: error: 'Limits' was not declared in this scope; did you mean 'Hypnos::Search::Limits'? 256 | Time.init(Limits, us, rootPos.game_ply()); | ^~~~~~ | Hypnos::Search::Limits search.h:106:19: note: 'Hypnos::Search::Limits' declared here 106 | extern LimitsType Limits; | ^~~~~~ search.cpp:256:23: error: 'us' was not declared in this scope; did you mean 'u8'? 256 | Time.init(Limits, us, rootPos.game_ply()); | ^~ | u8 search.cpp:256:27: error: 'rootPos' was not declared in this scope 256 | Time.init(Limits, us, rootPos.game_ply()); | ^~~~~~~ search.cpp:257:5: error: 'TT' was not declared in this scope; did you mean 'Hypnos::TT'? 257 | TT.new_search(); | ^~ | Hypnos::TT tt.h:106:27: note: 'Hypnos::TT' declared here 106 | extern TranspositionTable TT; | ^~ search.cpp:258:15: error: 'Options' was not declared in this scope; did you mean 'Hypnos::Options'? 258 | variety = Options["Variety"]; | ^~~~~~~ | Hypnos::Options uci.h:91:24: note: 'Hypnos::Options' declared here 91 | extern UCI::OptionsMap Options; | ^~~~~~~ search.cpp:259:5: error: 'Eval' has not been declared 259 | Eval::NNUE::verify(); | ^~~~ search.cpp:260:5: error: 'Move' was not declared in this scope; did you mean 'Hypnos::Move'? 260 | Move bookMove = Move::none(); | ^~~~ | Hypnos::Move types.h:429:7: note: 'Hypnos::Move' declared here 429 | class Move { | ^~~~ search.cpp:264:9: error: 'rootMoves' was not declared in this scope 264 | if (rootMoves.empty()) | ^~~~~~~~~ search.cpp:266:32: error: 'Move' is not a class, namespace, or enumeration 266 | rootMoves.emplace_back(Move::none()); | ^~~~ misc.h:81:32: error: 'IO_LOCK' was not declared in this scope; did you mean 'Hypnos::IO_LOCK'? 81 | #define sync_cout std::cout << IO_LOCK | ^~~~~~~ search.cpp:267:9: note: in expansion of macro 'sync_cout' 267 | sync_cout << "info depth 0 score " | ^~~~~~~~~ misc.h:76:5: note: 'Hypnos::IO_LOCK' declared here 76 | IO_LOCK, | ^~~~~~~ search.cpp:268:22: error: 'UCI' has not been declared 268 | << UCI::value(rootPos.checkers() ? -VALUE_MATE : VALUE_DRAW) << sync_endl; | ^~~ search.cpp:268:55: error: 'VALUE_MATE' was not declared in this scope; did you mean 'Hypnos::VALUE_MATE'? 268 | << UCI::value(rootPos.checkers() ? -VALUE_MATE : VALUE_DRAW) << sync_endl; | ^~~~~~~~~~ | Hypnos::VALUE_MATE types.h:150:17: note: 'Hypnos::VALUE_MATE' declared here 150 | constexpr Value VALUE_MATE = 32000; | ^~~~~~~~~~ search.cpp:268:68: error: 'VALUE_DRAW' was not declared in this scope; did you mean 'Hypnos::VALUE_DRAW'? 268 | << UCI::value(rootPos.checkers() ? -VALUE_MATE : VALUE_DRAW) << sync_endl; | ^~~~~~~~~~ | Hypnos::VALUE_DRAW types.h:146:17: note: 'Hypnos::VALUE_DRAW' declared here 146 | constexpr Value VALUE_DRAW = 0; | ^~~~~~~~~~ misc.h:82:32: error: 'IO_UNLOCK' was not declared in this scope; did you mean 'Hypnos::IO_UNLOCK'? 82 | #define sync_endl std::endl << IO_UNLOCK | ^~~~~~~~~ search.cpp:268:83: note: in expansion of macro 'sync_endl' 268 | << UCI::value(rootPos.checkers() ? -VALUE_MATE : VALUE_DRAW) << sync_endl; | ^~~~~~~~~ misc.h:77:5: note: 'Hypnos::IO_UNLOCK' declared here 77 | IO_UNLOCK | ^~~~~~~~~ search.cpp:273:17: error: 'ponder' was not declared in this scope 273 | && !ponder) | ^~~~~~ search.cpp:276:13: error: 'bookMove' was not declared in this scope 276 | bookMove = Book::probe(rootPos); | ^~~~~~~~ search.cpp:276:24: error: 'Book' has not been declared 276 | bookMove = Book::probe(rootPos); | ^~~~ search.cpp:279:29: error: 'Move' is not a class, namespace, or enumeration 279 | if (bookMove == Move::none() && (bool) Options["Experience Book"] | ^~~~ search.cpp:283:47: error: 'Depth' was not declared in this scope; did you mean 'Hypnos::Depth'? 283 | const auto expBookMinDepth = Depth(Options["Experience Book Min Depth"]); | ^~~~~ | Hypnos::Depth types.h:200:7: note: 'Hypnos::Depth' declared here 200 | using Depth = int; | ^~~~~ misc.h:81:32: error: 'IO_LOCK' was not declared in this scope; did you mean 'Hypnos::IO_LOCK'? 81 | #define sync_cout std::cout << IO_LOCK | ^~~~~~~ search.cpp:324:29: note: in expansion of macro 'sync_cout' 324 | sync_cout << "info " | ^~~~~~~~~ misc.h:76:5: note: 'Hypnos::IO_LOCK' declared here 76 | IO_LOCK, | ^~~~~~~ search.cpp:327:55: error: 'UCI' has not been declared 327 | << " score " << UCI::value(it->first->value) << " nodes " | ^~~ search.cpp:330:52: error: 'UCI' has not been declared 330 | << " pv " << UCI::move(it->first->move, rootPos.is_chess960()) | ^~~ misc.h:82:32: error: 'IO_UNLOCK' was not declared in this scope; did you mean 'Hypnos::IO_UNLOCK'? 82 | #define sync_endl std::endl << IO_UNLOCK | ^~~~~~~~~ search.cpp:331:42: note: in expansion of macro 'sync_endl' 331 | << sync_endl; | ^~~~~~~~~ misc.h:77:5: note: 'Hypnos::IO_UNLOCK' declared here 77 | IO_UNLOCK | ^~~~~~~~~ search.cpp:337:36: error: 'PRNG' does not name a type 337 | static PRNG rng(now()); | ^~~~ search.cpp:340:48: error: 'rng' was not declared in this scope 340 | bookMove = quality[rng.rand<uint32_t>() | ^~~ search.cpp:340:65: error: expected primary-expression before '>' token 340 | bookMove = quality[rng.rand<uint32_t>() | ^ search.cpp:340:67: error: expected primary-expression before ')' token 340 | bookMove = quality[rng.rand<uint32_t>() | ^ search.cpp:352:29: error: 'Move' is not a class, namespace, or enumeration 352 | if (bookMove != Move::none() | ^~~~ search.cpp:357:22: error: 'Thread' was not declared in this scope; did you mean 'Hypnos::Thread'? 357 | for (Thread* th : Threads) | ^~~~~~ | Hypnos::Thread thread.h:38:7: note: 'Hypnos::Thread' declared here 38 | class Thread { | ^~~~~~ search.cpp:357:33: error: found ':' in nested-name-specifier, expected '::' 357 | for (Thread* th : Threads) | ^ | :: search.cpp:357:30: error: 'th' has not been declared 357 | for (Thread* th : Threads) | ^~ search.cpp:360:13: error: expected primary-expression before '}' token 360 | } | ^ search.cpp:359:97: error: expected ';' before '}' token 359 | *std::find(th->rootMoves.begin(), th->rootMoves.end(), bookMove)); | ^ | ; 360 | } | ~ search.cpp:360:13: error: expected primary-expression before '}' token 360 | } | ^ search.cpp:359:97: error: expected ')' before '}' token 359 | *std::find(th->rootMoves.begin(), th->rootMoves.end(), bookMove)); | ^ | ) 360 | } | ~ search.cpp:357:21: note: to match this '(' 357 | for (Thread* th : Threads) | ^ search.cpp:360:13: error: expected primary-expression before '}' token 360 | } | ^ search.cpp:364:13: error: 'Threads' was not declared in this scope; did you mean 'Hypnos::Threads'? 364 | Threads.start_searching(); // start non-main threads | ^~~~~~~ | Hypnos::Threads thread.h:134:19: note: 'Hypnos::Threads' declared here 134 | extern ThreadPool Threads; | ^~~~~~~ search.cpp:365:13: error: 'Thread' has not been declared 365 | Thread::search(); // main thread start searching | ^~~~~~ search.cpp:375:13: error: 'Threads' was not declared in this scope; did you mean 'Hypnos::Threads'? 375 | while (!Threads.stop && (ponder || Limits.infinite)) | ^~~~~~~ | Hypnos::Threads thread.h:134:19: note: 'Hypnos::Threads' declared here 134 | extern ThreadPool Threads; | ^~~~~~~ search.cpp:375:30: error: 'ponder' was not declared in this scope 375 | while (!Threads.stop && (ponder || Limits.infinite)) | ^~~~~~ search.cpp:380:5: error: 'Threads' was not declared in this scope; did you mean 'Hypnos::Threads'? 380 | Threads.stop = true; | ^~~~~~~ | Hypnos::Threads thread.h:134:19: note: 'Hypnos::Threads' declared here 134 | extern ThreadPool Threads; | ^~~~~~~ search.cpp:390:5: error: 'Thread' was not declared in this scope; did you mean 'Hypnos::Thread'? 390 | Thread* bestThread = this; | ^~~~~~ | Hypnos::Thread thread.h:38:7: note: 'Hypnos::Thread' declared here 38 | class Thread { | ^~~~~~ search.cpp:390:13: error: 'bestThread' was not declared in this scope; did you mean 'ExitThread'? 390 | Thread* bestThread = this; | ^~~~~~~~~~ | ExitThread search.cpp:390:26: error: invalid use of 'this' in non-member function 390 | Thread* bestThread = this; | ^~~~ search.cpp:395:12: error: 'rootMoves' was not declared in this scope 395 | && rootMoves[0].pv[0] != Move::none()) | ^~~~~~~~~ search.cpp:395:34: error: 'Move' is not a class, namespace, or enumeration 395 | && rootMoves[0].pv[0] != Move::none()) | ^~~~ search.cpp:411:13: error: 'Move' does not name a type 411 | Move move; | ^~~~ search.cpp:412:13: error: 'Depth' does not name a type 412 | Depth depth; | ^~~~~ search.cpp:413:13: error: 'Value' does not name a type; did you mean 'pvalueW'? 413 | Value scoreSum; | ^~~~~ | pvalueW search.cpp:417:64: error: template argument 4 is invalid 417 | std::unordered_map<Move, UniqueMoveInfo, Move::MoveHash> uniqueMoves; | ^ search.cpp:417:64: error: template argument 5 is invalid search.cpp:427:55: error: request for member 'find' in 'uniqueMoves', which is of non-class type 'int' 427 | auto existingMove = uniqueMoves.find(thisMove.move); | ^~~~ search.cpp:427:69: error: 'struct search()::UniqueMoveInfo' has no member named 'move' 427 | auto existingMove = uniqueMoves.find(thisMove.move); | ^~~~ search.cpp:429:45: error: request for member 'end' in 'uniqueMoves', which is of non-class type 'int' 429 | if (existingMove == uniqueMoves.end()) | ^~~ search.cpp:431:38: error: 'struct search()::UniqueMoveInfo' has no member named 'move' 431 | uniqueMoves[thisMove.move] = thisMove; | ^~~~ search.cpp:436:26: error: 'struct search()::UniqueMoveInfo' has no member named 'depth' 436 | if (thisMove.depth > existingMove->second.depth) | ^~~~~ search.cpp:437:38: error: 'struct search()::UniqueMoveInfo' has no member named 'move' 437 | uniqueMoves[thisMove.move] = thisMove; | ^~~~ search.cpp:438:31: error: 'struct search()::UniqueMoveInfo' has no member named 'depth' 438 | else if (thisMove.depth == existingMove->second.depth) | ^~~~~ search.cpp:440:38: error: 'struct search()::UniqueMoveInfo' has no member named 'move' 440 | uniqueMoves[thisMove.move].scoreSum += thisMove.scoreSum; | ^~~~ search.cpp:440:65: error: 'struct search()::UniqueMoveInfo' has no member named 'scoreSum' 440 | uniqueMoves[thisMove.move].scoreSum += thisMove.scoreSum; | ^~~~~~~~ search.cpp:441:38: error: 'struct search()::UniqueMoveInfo' has no member named 'move' 441 | uniqueMoves[thisMove.move].count++; | ^~~~ search.cpp:446:41: error: 'begin' was not declared in this scope; did you mean 'std::begin'? 446 | for (const auto& [move, info] : uniqueMoves) | ^~~~~~~~~~~ | std::begin In file included from C:/msys64/mingw64/include/c++/13.2.0/vector:69, from search.h:23: C:/msys64/mingw64/include/c++/13.2.0/bits/range_access.h:114:37: note: 'std::begin' declared here 114 | template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept; | ^~~~~ search.cpp:446:41: error: 'end' was not declared in this scope; did you mean 'std::end'? 446 | for (const auto& [move, info] : uniqueMoves) | ^~~~~~~~~~~ | std::end C:/msys64/mingw64/include/c++/13.2.0/bits/range_access.h:116:37: note: 'std::end' declared here 116 | template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept; | ^~~ search.cpp:451:13: error: 'Utility' has not been declared 451 | if (Utility::is_game_decided(rootPos, bestThread->rootMoves[0].score)) | ^~~~~~~ search.cpp:458:5: error: 'bestPreviousScore' was not declared in this scope 458 | bestPreviousScore = bestThread->rootMoves[0].score; | ^~~~~~~~~~~~~~~~~ search.cpp:459:5: error: 'bestPreviousAverageScore' was not declared in this scope 459 | bestPreviousAverageScore = bestThread->rootMoves[0].averageScore; | ^~~~~~~~~~~~~~~~~~~~~~~~ search.cpp:462:23: error: invalid use of 'this' in non-member function 462 | if (bestThread != this) | ^~~~ misc.h:81:32: error: 'IO_LOCK' was not declared in this scope; did you mean 'Hypnos::IO_LOCK'? 81 | #define sync_cout std::cout << IO_LOCK | ^~~~~~~ search.cpp:463:9: note: in expansion of macro 'sync_cout' 463 | sync_cout << UCI::pv(bestThread->rootPos, bestThread->completedDepth) << sync_endl; | ^~~~~~~~~ misc.h:76:5: note: 'Hypnos::IO_LOCK' declared here 76 | IO_LOCK, | ^~~~~~~ search.cpp:463:22: error: 'UCI' has not been declared 463 | sync_cout << UCI::pv(bestThread->rootPos, bestThread->completedDepth) << sync_endl; | ^~~ misc.h:82:32: error: 'IO_UNLOCK' was not declared in this scope; did you mean 'Hypnos::IO_UNLOCK'? 82 | #define sync_endl std::endl << IO_UNLOCK | ^~~~~~~~~ search.cpp:463:82: note: in expansion of macro 'sync_endl' 463 | sync_cout << UCI::pv(bestThread->rootPos, bestThread->completedDepth) << sync_endl; | ^~~~~~~~~ misc.h:77:5: note: 'Hypnos::IO_UNLOCK' declared here 77 | IO_UNLOCK | ^~~~~~~~~ misc.h:81:32: error: 'IO_LOCK' was not declared in this scope; did you mean 'Hypnos::IO_LOCK'? 81 | #define sync_cout std::cout << IO_LOCK | ^~~~~~~ search.cpp:465:5: note: in expansion of macro 'sync_cout' 465 | sync_cout << "bestmove " << UCI::move(bestThread->rootMoves[0].pv[0], rootPos.is_chess960()); | ^~~~~~~~~ misc.h:76:5: note: 'Hypnos::IO_LOCK' declared here 76 | IO_LOCK, | ^~~~~~~ search.cpp:465:33: error: 'UCI' has not been declared 465 | sync_cout << "bestmove " << UCI::move(bestThread->rootMoves[0].pv[0], rootPos.is_chess960()); | ^~~ search.cpp:469:36: error: 'UCI' has not been declared 469 | std::cout << " ponder " << UCI::move(bestThread->rootMoves[0].pv[1], rootPos.is_chess960()); | ^~~ misc.h:82:32: error: 'IO_UNLOCK' was not declared in this scope; did you mean 'Hypnos::IO_UNLOCK'? 82 | #define sync_endl std::endl << IO_UNLOCK | ^~~~~~~~~ search.cpp:471:18: note: in expansion of macro 'sync_endl' 471 | std::cout << sync_endl; | ^~~~~~~~~ misc.h:77:5: note: 'Hypnos::IO_UNLOCK' declared here 77 | IO_UNLOCK | ^~~~~~~~~ search.cpp: At global scope: search.cpp:477:6: error: 'Thread' has not been declared 477 | void Thread::search() { | ^~~~~~ search.cpp:477:6: error: redefinition of 'void search()' search.cpp:243:6: note: 'void search()' previously defined here 243 | void MainThread::search() { | ^~~~~~~~~~ search.cpp: In function 'void search()': search.cpp:482:5: error: 'Stack' was not declared in this scope; did you mean 'Hypnos::Search::Stack'? 482 | Stack stack[MAX_PLY + 10], *ss = stack + 7; | ^~~~~ | Hypnos::Search::Stack search.h:39:8: note: 'Hypnos::Search::Stack' declared here 39 | struct Stack { | ^~~~~ search.cpp:483:5: error: 'Move' was not declared in this scope; did you mean 'Hypnos::Move'? 483 | Move pv[MAX_PLY + 1]; | ^~~~ | Hypnos::Move types.h:429:7: note: 'Hypnos::Move' declared here 429 | class Move { | ^~~~ search.cpp:484:5: error: 'Value' was not declared in this scope; did you mean 'Hypnos::Value'? 484 | Value alpha, beta; | ^~~~~ | Hypnos::Value types.h:143:7: note: 'Hypnos::Value' declared here 143 | using Value = int; | ^~~~~ search.cpp:485:9: error: expected ';' before 'lastBestMove' 485 | Move lastBestMove = Move::none(); | ^ ~~~~~~~~~~~~ | ; search.cpp:486:5: error: 'Depth' was not declared in this scope; did you mean 'Hypnos::Depth'? 486 | Depth lastBestMoveDepth = 0; | ^~~~~ | Hypnos::Depth types.h:200:7: note: 'Hypnos::Depth' declared here 200 | using Depth = int; | ^~~~~ search.cpp:487:5: error: 'MainThread' was not declared in this scope; did you mean 'Hypnos::MainThread'? 487 | MainThread* mainThread = (this == Threads.main() ? Threads.main() : nullptr); | ^~~~~~~~~~ | Hypnos::MainThread thread.h:79:8: note: 'Hypnos::MainThread' declared here 79 | struct MainThread: public Thread { | ^~~~~~~~~~ search.cpp:487:17: error: 'mainThread' was not declared in this scope; did you mean 'OpenThread'? 487 | MainThread* mainThread = (this == Threads.main() ? Threads.main() : nullptr); | ^~~~~~~~~~ | OpenThread search.cpp:487:38: error: invalid use of 'this' in non-member function 487 | MainThread* mainThread = (this == Threads.main() ? Threads.main() : nullptr); | ^~~~ search.cpp:487:46: error: 'Threads' was not declared in this scope; did you mean 'Hypnos::Threads'? 487 | MainThread* mainThread = (this == Threads.main() ? Threads.main() : nullptr); | ^~~~~~~ | Hypnos::Threads thread.h:134:19: note: 'Hypnos::Threads' declared here 134 | extern ThreadPool Threads; | ^~~~~~~ search.cpp:489:5: error: 'Color' was not declared in this scope; did you mean 'Hypnos::Color'? 489 | Color us = rootPos.side_to_move(); | ^~~~~ | Hypnos::Color types.h:111:6: note: 'Hypnos::Color' declared here 111 | enum Color { | ^~~~~ search.cpp:492:17: error: 'ss' was not declared in this scope 492 | std::memset(ss - 7, 0, 10 * sizeof(Stack)); | ^~ search.cpp:496:12: error: invalid use of 'this' in non-member function 496 | &this->continuationHistory[0][0][NO_PIECE][0]; // Use as a sentinel | ^~~~ search.cpp:496:44: error: 'NO_PIECE' was not declared in this scope; did you mean 'Hypnos::NO_PIECE'? 496 | &this->continuationHistory[0][0][NO_PIECE][0]; // Use as a sentinel | ^~~~~~~~ | Hypnos::NO_PIECE types.h:180:5: note: 'Hypnos::NO_PIECE' declared here 180 | NO_PIECE, | ^~~~~~~~ search.cpp:497:32: error: 'VALUE_NONE' was not declared in this scope; did you mean 'Hypnos::VALUE_NONE'? 497 | (ss - i)->staticEval = VALUE_NONE; | ^~~~~~~~~~ | Hypnos::VALUE_NONE types.h:147:17: note: 'Hypnos::VALUE_NONE' declared here 147 | constexpr Value VALUE_NONE = 32002; | ^~~~~~~~~~ search.cpp:500:26: error: 'MAX_PLY' was not declared in this scope; did you mean 'Hypnos::MAX_PLY'? 500 | for (int i = 0; i <= MAX_PLY + 2; ++i) | ^~~~~~~ | Hypnos::MAX_PLY types.h:109:15: note: 'Hypnos::MAX_PLY' declared here 109 | constexpr int MAX_PLY = 246; | ^~~~~~~ search.cpp:503:14: error: 'pv' was not declared in this scope; did you mean 'Hypnos::UCI::pv'? 503 | ss->pv = pv; | ^~ | Hypnos::UCI::pv uci.h:85:13: note: 'Hypnos::UCI::pv' declared here 85 | std::string pv(const Position& pos, Depth depth); | ^~ search.cpp:505:5: error: 'bestValue' was not declared in this scope; did you mean 'GetGValue'? 505 | bestValue = -VALUE_INFINITE; | ^~~~~~~~~ | GetGValue search.cpp:505:18: error: 'VALUE_INFINITE' was not declared in this scope; did you mean 'Hypnos::VALUE_INFINITE'? 505 | bestValue = -VALUE_INFINITE; | ^~~~~~~~~~~~~~ | Hypnos::VALUE_INFINITE types.h:148:17: note: 'Hypnos::VALUE_INFINITE' declared here 148 | constexpr Value VALUE_INFINITE = 32001; | ^~~~~~~~~~~~~~ search.cpp:511:44: error: 'VALUE_ZERO' was not declared in this scope; did you mean 'Hypnos::VALUE_ZERO'? 511 | mainThread->iterValue[i] = VALUE_ZERO; | ^~~~~~~~~~ | Hypnos::VALUE_ZERO types.h:145:17: note: 'Hypnos::VALUE_ZERO' declared here 145 | constexpr Value VALUE_ZERO = 0; | ^~~~~~~~~~ search.cpp:517:29: error: 'Options' was not declared in this scope; did you mean 'Hypnos::Options'? 517 | size_t multiPV = size_t(Options["MultiPV"]); | ^~~~~~~ | Hypnos::Options uci.h:91:24: note: 'Hypnos::Options' declared here 91 | extern UCI::OptionsMap Options; | ^~~~~~~ search.cpp:525:33: error: 'rootMoves' was not declared in this scope 525 | multiPV = std::min(multiPV, rootMoves.size()); | ^~~~~~~~~ search.cpp:530:14: error: 'rootDepth' was not declared in this scope 530 | while (++rootDepth < MAX_PLY && !Threads.stop | ^~~~~~~~~ search.cpp:530:26: error: 'MAX_PLY' was not declared in this scope; did you mean 'Hypnos::MAX_PLY'? 530 | while (++rootDepth < MAX_PLY && !Threads.stop | ^~~~~~~ | Hypnos::MAX_PLY types.h:109:15: note: 'Hypnos::MAX_PLY' declared here 109 | constexpr int MAX_PLY = 246; | ^~~~~~~ search.cpp:531:17: error: 'Limits' was not declared in this scope; did you mean 'Hypnos::Search::Limits'? 531 | && !(Limits.depth && mainThread && rootDepth > Limits.depth)) | ^~~~~~ | Hypnos::Search::Limits search.h:106:19: note: 'Hypnos::Search::Limits' declared here 106 | extern LimitsType Limits; | ^~~~~~ search.cpp:539:14: error: 'RootMove' was not declared in this scope; did you mean 'Hypnos::Search::RootMove'? 539 | for (RootMove& rm : rootMoves) | ^~~~~~~~ | Hypnos::Search::RootMove search.h:60:8: note: 'Hypnos::Search::RootMove' declared here 60 | struct RootMove { | ^~~~~~~~ search.cpp:539:27: error: found ':' in nested-name-specifier, expected '::' 539 | for (RootMove& rm : rootMoves) | ^ | :: search.cpp:539:24: error: 'rm' has not been declared 539 | for (RootMove& rm : rootMoves) | ^~ search.cpp:543:9: error: 'pvLast' was not declared in this scope 543 | pvLast = 0; | ^~~~~~ search.cpp:543:27: error: expected ')' before ';' token 543 | pvLast = 0; | ^ | ) search.cpp:539:13: note: to match this '(' 539 | for (RootMove& rm : rootMoves) | ^ search.cpp:542:16: warning: unused variable 'pvFirst' [-Wunused-variable] 542 | size_t pvFirst = 0; | ^~~~~~~ search.cpp:549:14: error: 'pvIdx' was not declared in this scope 549 | for (pvIdx = 0; pvIdx < multiPV && !Threads.stop; ++pvIdx) | ^~~~~ search.cpp:551:26: error: 'pvLast' was not declared in this scope 551 | if (pvIdx == pvLast) | ^~~~~~ search.cpp:553:17: error: 'pvFirst' was not declared in this scope 553 | pvFirst = pvLast; | ^~~~~~~ search.cpp:560:13: error: 'selDepth' was not declared in this scope 560 | selDepth = 0; | ^~~~~~~~ search.cpp:563:18: error: expected ';' before 'avg' 563 | Value avg = rootMoves[pvIdx].averageScore; | ^~~~ | ; search.cpp:564:41: error: 'avg' was not declared in this scope 564 | delta = Value(10) + int(avg) * avg / 12493; | ^~~ search.cpp:565:13: error: 'alpha' was not declared in this scope; did you mean 'isalpha'? 565 | alpha = std::max(avg - delta, -VALUE_INFINITE); | ^~~~~ | isalpha search.cpp:566:13: error: 'beta' was not declared in this scope; did you mean 'std::beta'? 566 | beta = std::min(avg + delta, int(VALUE_INFINITE)); | ^~~~ | std::beta In file included from C:/msys64/mingw64/include/c++/13.2.0/cmath:3699, from movepick.h:25: C:/msys64/mingw64/include/c++/13.2.0/bits/specfun.h:341:5: note: 'std::beta' declared here 341 | beta(_Tpa __a, _Tpb __b) | ^~~~ search.cpp:569:13: error: 'optimism' was not declared in this scope 569 | optimism[us] = 132 * avg / (std::abs(avg) + 89); | ^~~~~~~~ search.cpp:569:22: error: 'us' was not declared in this scope; did you mean 'u8'? 569 | optimism[us] = 132 * avg / (std::abs(avg) + 89); | ^~ | u8 search.cpp:580:22: error: expected ';' before 'adjustedDepth' 580 | Depth adjustedDepth = | ^~~~~~~~~~~~~~ | ; search.cpp:582:37: error: 'search' is not a member of 'Hypnos'; did you mean 'Search'? 582 | bestValue = Hypnos::search<Root>(rootPos, ss, alpha, beta, adjustedDepth, false); | ^~~~~~ | Search search.cpp:582:50: error: 'rootPos' was not declared in this scope 582 | bestValue = Hypnos::search<Root>(rootPos, ss, alpha, beta, adjustedDepth, false); | ^~~~~~~ search.cpp:582:76: error: 'adjustedDepth' was not declared in this scope 582 | bestValue = Hypnos::search<Root>(rootPos, ss, alpha, beta, adjustedDepth, false); | ^~~~~~~~~~~~~ search.cpp:590:81: error: 'pvLast' was not declared in this scope 590 | std::stable_sort(rootMoves.begin() + pvIdx, rootMoves.begin() + pvLast); | ^~~~~~ search.cpp:601:24: error: 'Time' was not declared in this scope; did you mean 'Hypnos::Time'? 601 | && Time.elapsed() > 3000) | ^~~~ | Hypnos::Time timeman.h:50:23: note: 'Hypnos::Time' declared here 50 | extern TimeManagement Time; | ^~~~ misc.h:81:32: error: 'IO_LOCK' was not declared in this scope; did you mean 'Hypnos::IO_LOCK'? 81 | #define sync_cout std::cout << IO_LOCK | ^~~~~~~ search.cpp:602:21: note: in expansion of macro 'sync_cout' 602 | sync_cout << UCI::pv(rootPos, rootDepth) << sync_endl; | ^~~~~~~~~ misc.h:76:5: note: 'Hypnos::IO_LOCK' declared here 76 | IO_LOCK, | ^~~~~~~ search.cpp:602:34: error: 'UCI' has not been declared 602 | sync_cout << UCI::pv(rootPos, rootDepth) << sync_endl; | ^~~ misc.h:82:32: error: 'IO_UNLOCK' was not declared in this scope; did you mean 'Hypnos::IO_UNLOCK'? 82 | #define sync_endl std::endl << IO_UNLOCK | ^~~~~~~~~ search.cpp:602:65: note: in expansion of macro 'sync_endl' 602 | sync_cout << UCI::pv(rootPos, rootDepth) << sync_endl; | ^~~~~~~~~ misc.h:77:5: note: 'Hypnos::IO_UNLOCK' declared here 77 | IO_UNLOCK | ^~~~~~~~~ search.cpp:629:50: error: 'pvFirst' was not declared in this scope 629 | std::stable_sort(rootMoves.begin() + pvFirst, rootMoves.begin() + pvIdx + 1); | ^~~~~~~ search.cpp:631:72: error: 'Time' was not declared in this scope; did you mean 'Hypnos::Time'? 631 | if (mainThread && (Threads.stop || pvIdx + 1 == multiPV || Time.elapsed() > 3000)) | ^~~~ | Hypnos::Time timeman.h:50:23: note: 'Hypnos::Time' declared here 50 | extern TimeManagement Time; | ^~~~ misc.h:81:32: error: 'IO_LOCK' was not declared in this scope; did you mean 'Hypnos::IO_LOCK'? 81 | #define sync_cout std::cout << IO_LOCK | ^~~~~~~ search.cpp:632:17: note: in expansion of macro 'sync_cout' 632 | sync_cout << UCI::pv(rootPos, rootDepth) << sync_endl; | ^~~~~~~~~ misc.h:76:5: note: 'Hypnos::IO_LOCK' declared here 76 | IO_LOCK, | ^~~~~~~ search.cpp:632:30: error: 'UCI' has not been declared 632 | sync_cout << UCI::pv(rootPos, rootDepth) << sync_endl; | ^~~ search.cpp:632:38: error: 'rootPos' was not declared in this scope 632 | sync_cout << UCI::pv(rootPos, rootDepth) << sync_endl; | ^~~~~~~ misc.h:82:32: error: 'IO_UNLOCK' was not declared in this scope; did you mean 'Hypnos::IO_UNLOCK'? 82 | #define sync_endl std::endl << IO_UNLOCK | ^~~~~~~~~ search.cpp:632:61: note: in expansion of macro 'sync_endl' 632 | sync_cout << UCI::pv(rootPos, rootDepth) << sync_endl; | ^~~~~~~~~ misc.h:77:5: note: 'Hypnos::IO_UNLOCK' declared here 77 | IO_UNLOCK | ^~~~~~~~~ search.cpp:636:13: error: 'completedDepth' was not declared in this scope 636 | completedDepth = rootDepth; | ^~~~~~~~~~~~~~ search.cpp:638:35: error: 'lastBestMove' was not declared in this scope 638 | if (rootMoves[0].pv[0] != lastBestMove) | ^~~~~~~~~~~~ search.cpp:641:13: error: 'lastBestMoveDepth' was not declared in this scope 641 | lastBestMoveDepth = rootDepth; | ^~~~~~~~~~~~~~~~~ search.cpp:649:40: error: 'VALUE_MATE_IN_MAX_PLY' was not declared in this scope; did you mean 'Hypnos::VALUE_MATE_IN_MAX_PLY'? 649 | && ((rootMoves[0].score >= VALUE_MATE_IN_MAX_PLY | ^~~~~~~~~~~~~~~~~~~~~ | Hypnos::VALUE_MATE_IN_MAX_PLY types.h:151:17: note: 'Hypnos::VALUE_MATE_IN_MAX_PLY' declared here 151 | constexpr Value VALUE_MATE_IN_MAX_PLY = VALUE_MATE - MAX_PLY; | ^~~~~~~~~~~~~~~~~~~~~ search.cpp:650:21: error: 'VALUE_MATE' was not declared in this scope; did you mean 'Hypnos::VALUE_MATE'? 650 | && VALUE_MATE - rootMoves[0].score <= 2 * Limits.mate) | ^~~~~~~~~~ | Hypnos::VALUE_MATE types.h:150:17: note: 'Hypnos::VALUE_MATE' declared here 150 | constexpr Value VALUE_MATE = 32000; | ^~~~~~~~~~ search.cpp:652:46: error: 'VALUE_MATED_IN_MAX_PLY' was not declared in this scope; did you mean 'Hypnos::VALUE_MATED_IN_MAX_PLY'? 652 | && rootMoves[0].score <= VALUE_MATED_IN_MAX_PLY | ^~~~~~~~~~~~~~~~~~~~~~ | Hypnos::VALUE_MATED_IN_MAX_PLY types.h:152:17: note: 'Hypnos::VALUE_MATED_IN_MAX_PLY' declared here 152 | constexpr Value VALUE_MATED_IN_MAX_PLY = -VALUE_MATE_IN_MAX_PLY; | ^~~~~~~~~~~~~~~~~~~~~~ search.cpp:658:19: error: 'struct {anonymous}::Skill' has no member named 'pick_best' 658 | skill.pick_best(multiPV); | ^~~~~~~~~ search.cpp:661:14: error: 'Thread' was not declared in this scope; did you mean 'Hypnos::Thread'? 661 | for (Thread* th : Threads) | ^~~~~~ | Hypnos::Thread thread.h:38:7: note: 'Hypnos::Thread' declared here 38 | class Thread { | ^~~~~~ search.cpp:661:25: error: found ':' in nested-name-specifier, expected '::' 661 | for (Thread* th : Threads) | ^ | :: search.cpp:661:22: error: 'th' has not been declared 661 | for (Thread* th : Threads) | ^~ search.cpp:668:9: error: expected primary-expression before 'if' 668 | if (Limits.use_time_management() && !Threads.stop && !mainThread->stopOnPonderhit) | ^~ search.cpp:665:10: error: expected ';' before 'if' 665 | } | ^ | ; ...... 668 | if (Limits.use_time_management() && !Threads.stop && !mainThread->stopOnPonderhit) | ~~ search.cpp:668:9: error: expected primary-expression before 'if' 668 | if (Limits.use_time_management() && !Threads.stop && !mainThread->stopOnPonderhit) | ^~ search.cpp:665:10: error: expected ')' before 'if' 665 | } | ^ | ) ...... 668 | if (Limits.use_time_management() && !Threads.stop && !mainThread->stopOnPonderhit) | ~~ search.cpp:661:13: note: to match this '(' 661 | for (Thread* th : Threads) | ^ search.cpp:676:32: error: 'lastBestMoveDepth' was not declared in this scope 676 | timeReduction = lastBestMoveDepth + 8 < completedDepth ? 1.495 : 0.687; | ^~~~~~~~~~~~~~~~~ search.cpp:676:56: error: 'completedDepth' was not declared in this scope 676 | timeReduction = lastBestMoveDepth + 8 < completedDepth ? 1.495 : 0.687; | ^~~~~~~~~~~~~~ search.cpp:681:32: error: 'Time' was not declared in this scope; did you mean 'Hypnos::Time'? 681 | double totalTime = Time.optimum() * fallingEval * reduction * bestMoveInstability * EvalLevel[el]; | ^~~~ | Hypnos::Time timeman.h:50:23: note: 'Hypnos::Time' declared here 50 | extern TimeManagement Time; | ^~~~ search.cpp:715:50: error: 'struct {anonymous}::Skill' has no member named 'best' 715 | skill.best ? skill.best : skill.pick_best(multiPV))); | ^~~~ search.cpp:715:63: error: 'struct {anonymous}::Skill' has no member named 'best' 715 | skill.best ? skill.best : skill.pick_best(multiPV))); | ^~~~ search.cpp:715:76: error: 'struct {anonymous}::Skill' has no member named 'pick_best' 715 | skill.best ? skill.best : skill.pick_best(multiPV))); | ^~~~~~~~~ search.cpp: At global scope: search.cpp:723:1: error: 'Value' does not name a type; did you mean 'pvalueW'? 723 | Value search(Position& pos, Stack* ss, Value alpha, Value beta, Depth depth, bool cutNode) { | ^~~~~ | pvalueW search.cpp:1670:1: error: 'Value' does not name a type; did you mean 'pvalueW'? 1670 | Value qsearch(Position& pos, Stack* ss, Value alpha, Value beta, Depth depth) { | ^~~~~ | pvalueW search.cpp:1971:1: error: 'Value' does not name a type; did you mean 'pvalueW'? 1971 | Value value_to_tt(Value v, int ply) { | ^~~~~ | pvalueW search.cpp:1984:1: error: 'Value' does not name a type; did you mean 'pvalueW'? 1984 | Value value_from_tt(Value v, int ply, int r50c) { | ^~~~~ | pvalueW search.cpp:2022:6: error: variable or field 'update_pv' declared void 2022 | void update_pv(Move* pv, Move move, const Move* childPv) { | ^~~~~~~~~ search.cpp:2022:16: error: 'Move' was not declared in this scope; did you mean 'Hypnos::Move'? 2022 | void update_pv(Move* pv, Move move, const Move* childPv) { | ^~~~ | Hypnos::Move types.h:429:7: note: 'Hypnos::Move' declared here 429 | class Move { | ^~~~ search.cpp:2022:22: error: 'pv' was not declared in this scope; did you mean 'Hypnos::UCI::pv'? 2022 | void update_pv(Move* pv, Move move, const Move* childPv) { | ^~ | Hypnos::UCI::pv uci.h:85:13: note: 'Hypnos::UCI::pv' declared here 85 | std::string pv(const Position& pos, Depth depth); | ^~ search.cpp:2022:26: error: 'Move' was not declared in this scope; did you mean 'Hypnos::Move'? 2022 | void update_pv(Move* pv, Move move, const Move* childPv) { | ^~~~ | Hypnos::Move types.h:429:7: note: 'Hypnos::Move' declared here 429 | class Move { | ^~~~ search.cpp:2022:37: error: expected primary-expression before 'const' 2022 | void update_pv(Move* pv, Move move, const Move* childPv) { | ^~~~~ search.cpp:2031:29: error: 'Position' does not name a type 2031 | void update_all_stats(const Position& pos, | ^~~~~~~~ search.cpp:2032:23: error: 'Stack' has not been declared 2032 | Stack* ss, | ^~~~~ search.cpp:2033:23: error: 'Move' has not been declared 2033 | Move bestMove, | ^~~~ search.cpp:2034:23: error: 'Value' has not been declared 2034 | Value bestValue, | ^~~~~ search.cpp:2035:23: error: 'Value' has not been declared 2035 | Value beta, | ^~~~~ search.cpp:2036:23: error: 'Square' has not been declared 2036 | Square prevSq, | ^~~~~~ search.cpp:2037:23: error: 'Move' has not been declared 2037 | Move* quietsSearched, | ^~~~ search.cpp:2039:23: error: 'Move' has not been declared 2039 | Move* capturesSearched, | ^~~~ search.cpp:2041:23: error: 'Depth' has not been declared 2041 | Depth depth) { | ^~~~~ search.cpp: In function 'void {anonymous}::update_all_stats(const int&, int*, int, int, int, int, int*, int, int*, int, int)': search.cpp:2043:5: error: 'Color' was not declared in this scope; did you mean 'Hypnos::Color'? 2043 | Color us = pos.side_to_move(); | ^~~~~ | Hypnos::Color types.h:111:6: note: 'Hypnos::Color' declared here 111 | enum Color { | ^~~~~ search.cpp:2044:5: error: 'Thread' was not declared in this scope; did you mean 'Hypnos::Thread'? 2044 | Thread* thisThread = pos.this_thread(); | ^~~~~~ | Hypnos::Thread thread.h:38:7: note: 'Hypnos::Thread' declared here 38 | class Thread { | ^~~~~~ search.cpp:2044:28: error: 'thisThread' was not declared in this scope; did you mean 'ExitThread'? 2044 | Thread* thisThread = pos.this_thread(); | ^~~~~~~~~~ | ExitThread search.cpp:2044:49: error: request for member 'this_thread' in 'pos', which is of non-class type 'const int' 2044 | Thread* thisThread = pos.this_thread(); | ^~~~~~~~~~~ search.cpp:2045:5: error: 'CapturePieceToHistory' was not declared in this scope; did you mean 'Hypnos::CapturePieceToHistory'? 2045 | CapturePieceToHistory& captureHistory = thisThread->captureHistory; | ^~~~~~~~~~~~~~~~~~~~~ | Hypnos::CapturePieceToHistory movepick.h:126:7: note: 'Hypnos::CapturePieceToHistory' declared here 126 | using CapturePieceToHistory = Stats<int16_t, 10692, PIECE_NB, SQUARE_NB, PIECE_TYPE_NB>; | ^~~~~~~~~~~~~~~~~~~~~ search.cpp:2045:28: error: 'captureHistory' was not declared in this scope 2045 | CapturePieceToHistory& captureHistory = thisThread->captureHistory; | ^~~~~~~~~~~~~~ search.cpp:2046:5: error: 'Piece' was not declared in this scope; did you mean 'Hypnos::Piece'? 2046 | Piece moved_piece = pos.moved_piece(bestMove); | ^~~~~ | Hypnos::Piece types.h:179:6: note: 'Hypnos::Piece' declared here 179 | enum Piece { | ^~~~~ search.cpp:2047:5: error: 'PieceType' was not declared in this scope; did you mean 'Hypnos::PieceType'? 2047 | PieceType captured; | ^~~~~~~~~ | Hypnos::PieceType types.h:167:6: note: 'Hypnos::PieceType' declared here 167 | enum PieceType { | ^~~~~~~~~ search.cpp:2049:36: error: '{anonymous}::stat_bonus' cannot be used as a function 2049 | int quietMoveBonus = stat_bonus(depth + 1); | ~~~~~~~~~~^~~~~~~~~~~ search.cpp:2050:36: error: '{anonymous}::stat_malus' cannot be used as a function 2050 | int quietMoveMalus = stat_malus(depth); | ~~~~~~~~~~^~~~~~~ search.cpp:2052:14: error: request for member 'capture_stage' in 'pos', which is of non-class type 'const int' 2052 | if (!pos.capture_stage(bestMove)) | ^~~~~~~~~~~~~ search.cpp:2055:64: error: '{anonymous}::stat_bonus' cannot be used as a function 2055 | : stat_bonus(depth); // smaller bonus | ~~~~~~~~~~^~~~~~~ search.cpp:2060:22: error: 'pawn_structure_index' was not declared in this scope; did you mean 'Hypnos::pawn_structure_index'? 2060 | int pIndex = pawn_structure_index(pos); | ^~~~~~~~~~~~~~~~~~~~ | Hypnos::pawn_structure_index movepick.h:53:12: note: 'Hypnos::pawn_structure_index' declared here 53 | inline int pawn_structure_index(const Position& pos) { | ^~~~~~~~~~~~~~~~~~~~ search.cpp:2061:33: error: 'moved_piece' was not declared in this scope 2061 | thisThread->pawnHistory[pIndex][moved_piece][bestMove.to_sq()] << quietMoveBonus; | ^~~~~~~~~~~ search.cpp:2061:55: error: request for member 'to_sq' in 'bestMove', which is of non-class type 'int' 2061 | thisThread->pawnHistory[pIndex][moved_piece][bestMove.to_sq()] << quietMoveBonus; | ^~~~~ search.cpp:2066:43: error: request for member 'moved_piece' in 'pos', which is of non-class type 'const int' 2066 | ->pawnHistory[pIndex][pos.moved_piece(quietsSearched[i])][quietsSearched[i].to_sq()] | ^~~~~~~~~~~ search.cpp:2066:93: error: request for member 'to_sq' in '*(quietsSearched + ((sizetype)(((long long unsigned int)i) * 4)))', which is of non-class type 'int' 2066 | ->pawnHistory[pIndex][pos.moved_piece(quietsSearched[i])][quietsSearched[i].to_sq()] | ^~~~~ search.cpp:2069:37: error: 'us' was not declared in this scope; did you mean 'ss'? 2069 | thisThread->mainHistory[us][quietsSearched[i].from_to()] << -quietMoveMalus; | ^~ | ss search.cpp:2069:59: error: request for member 'from_to' in '*(quietsSearched + ((sizetype)(((long long unsigned int)i) * 4)))', which is of non-class type 'int' 2069 | thisThread->mainHistory[us][quietsSearched[i].from_to()] << -quietMoveMalus; | ^~~~~~~ search.cpp:2070:51: error: request for member 'moved_piece' in 'pos', which is of non-class type 'const int' 2070 | update_continuation_histories(ss, pos.moved_piece(quietsSearched[i]), | ^~~~~~~~~~~ search.cpp:2071:61: error: request for member 'to_sq' in '*(quietsSearched + ((sizetype)(((long long unsigned int)i) * 4)))', which is of non-class type 'int' 2071 | quietsSearched[i].to_sq(), -quietMoveMalus); | ^~~~~ search.cpp:2070:13: error: 'update_continuation_histories' was not declared in this scope 2070 | update_continuation_histories(ss, pos.moved_piece(quietsSearched[i]), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ search.cpp:2077:9: error: 'captured' was not declared in this scope 2077 | captured = type_of(pos.piece_on(bestMove.to_sq())); | ^~~~~~~~ search.cpp:2077:32: error: request for member 'piece_on' in 'pos', which is of non-class type 'const int' 2077 | captured = type_of(pos.piece_on(bestMove.to_sq())); | ^~~~~~~~ search.cpp:2077:50: error: request for member 'to_sq' in 'bestMove', which is of non-class type 'int' 2077 | captured = type_of(pos.piece_on(bestMove.to_sq())); | ^~~~~ search.cpp:2077:20: error: 'type_of' was not declared in this scope; did you mean 'Hypnos::type_of'? 2077 | captured = type_of(pos.piece_on(bestMove.to_sq())); | ^~~~~~~ | Hypnos::type_of types.h:383:21: note: 'Hypnos::type_of' declared here 383 | constexpr PieceType type_of(Piece pc) { return PieceType(pc & 7); } | ^~~~~~~ search.cpp:2078:24: error: 'moved_piece' was not declared in this scope 2078 | captureHistory[moved_piece][bestMove.to_sq()][captured] << quietMoveBonus; | ^~~~~~~~~~~ search.cpp:2078:46: error: request for member 'to_sq' in 'bestMove', which is of non-class type 'int' 2078 | captureHistory[moved_piece][bestMove.to_sq()][captured] << quietMoveBonus; | ^~~~~ search.cpp:2083:19: error: 'SQ_NONE' was not declared in this scope; did you mean 'Hypnos::SQ_NONE'? 2083 | if (prevSq != SQ_NONE | ^~~~~~~ | Hypnos::SQ_NONE types.h:277:5: note: 'Hypnos::SQ_NONE' declared here 277 | SQ_NONE, | ^~~~~~~ search.cpp:2084:23: error: request for member 'moveCount' in '*(ss + -4)', which is of non-class type 'int' 2084 | && ((ss - 1)->moveCount == 1 + (ss - 1)->ttHit | ^~~~~~~~~ search.cpp:2084:50: error: request for member 'ttHit' in '*(ss + -4)', which is of non-class type 'int' 2084 | && ((ss - 1)->moveCount == 1 + (ss - 1)->ttHit | ^~~~~ search.cpp:2085:27: error: request for member 'currentMove' in '*(ss + -4)', which is of non-class type 'int' 2085 | || ((ss - 1)->currentMove == (ss - 1)->killers[0])) | ^~~~~~~~~~~ search.cpp:2085:52: error: request for member 'killers' in '*(ss + -4)', which is of non-class type 'int' 2085 | || ((ss - 1)->currentMove == (ss - 1)->killers[0])) | ^~~~~~~ search.cpp:2086:17: error: request for member 'captured_piece' in 'pos', which is of non-class type 'const int' 2086 | && !pos.captured_piece()) | ^~~~~~~~~~~~~~ search.cpp:2087:51: error: request for member 'piece_on' in 'pos', which is of non-class type 'const int' 2087 | update_continuation_histories(ss - 1, pos.piece_on(prevSq), prevSq, -quietMoveMalus); | ^~~~~~~~ search.cpp:2087:9: error: 'update_continuation_histories' was not declared in this scope 2087 | update_continuation_histories(ss - 1, pos.piece_on(prevSq), prevSq, -quietMoveMalus); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ search.cpp:2092:9: error: 'moved_piece' was not declared in this scope 2092 | moved_piece = pos.moved_piece(capturesSearched[i]); | ^~~~~~~~~~~ search.cpp:2092:27: error: request for member 'moved_piece' in 'pos', which is of non-class type 'const int' 2092 | moved_piece = pos.moved_piece(capturesSearched[i]); | ^~~~~~~~~~~ search.cpp:2093:9: error: 'captured' was not declared in this scope 2093 | captured = type_of(pos.piece_on(capturesSearched[i].to_sq())); | ^~~~~~~~ search.cpp:2093:35: error: request for member 'piece_on' in 'pos', which is of non-class type 'const int' 2093 | captured = type_of(pos.piece_on(capturesSearched[i].to_sq())); | ^~~~~~~~ search.cpp:2093:64: error: request for member 'to_sq' in '*(capturesSearched + ((sizetype)(((long long unsigned int)i) * 4)))', which is of non-class type 'int' 2093 | captured = type_of(pos.piece_on(capturesSearched[i].to_sq())); | ^~~~~ search.cpp:2093:23: error: 'type_of' was not declared in this scope; did you mean 'Hypnos::type_of'? 2093 | captured = type_of(pos.piece_on(capturesSearched[i].to_sq())); | ^~~~~~~ | Hypnos::type_of types.h:383:21: note: 'Hypnos::type_of' declared here 383 | constexpr PieceType type_of(Piece pc) { return PieceType(pc & 7); } | ^~~~~~~ search.cpp:2094:57: error: request for member 'to_sq' in '*(capturesSearched + ((sizetype)(((long long unsigned int)i) * 4)))', which is of non-class type 'int' 2094 | captureHistory[moved_piece][capturesSearched[i].to_sq()][captured] << -quietMoveMalus; | ^~~~~ search.cpp: At global scope: search.cpp:2101:6: error: variable or field 'update_continuation_histories' declared void 2101 | void update_continuation_histories(Stack* ss, Piece pc, Square to, int bonus) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ search.cpp:2101:36: error: 'Stack' was not declared in this scope; did you mean 'Hypnos::Search::Stack'? 2101 | void update_continuation_histories(Stack* ss, Piece pc, Square to, int bonus) { | ^~~~~ | Hypnos::Search::Stack search.h:39:8: note: 'Hypnos::Search::Stack' declared here 39 | struct Stack { | ^~~~~ search.cpp:2101:43: error: 'ss' was not declared in this scope 2101 | void update_continuation_histories(Stack* ss, Piece pc, Square to, int bonus) { | ^~ search.cpp:2101:47: error: 'Piece' was not declared in this scope; did you mean 'Hypnos::Piece'? 2101 | void update_continuation_histories(Stack* ss, Piece pc, Square to, int bonus) { | ^~~~~ | Hypnos::Piece types.h:179:6: note: 'Hypnos::Piece' declared here 179 | enum Piece { | ^~~~~ search.cpp:2101:57: error: 'Square' was not declared in this scope; did you mean 'Hypnos::Square'? 2101 | void update_continuation_histories(Stack* ss, Piece pc, Square to, int bonus) { | ^~~~~~ | Hypnos::Square types.h:212:6: note: 'Hypnos::Square' declared here 212 | enum Square : int { | ^~~~~~ search.cpp:2101:68: error: expected primary-expression before 'int' 2101 | void update_continuation_histories(Stack* ss, Piece pc, Square to, int bonus) { | ^~~ search.cpp:2117:31: error: 'Position' does not name a type 2117 | void update_quiet_stats(const Position& pos, Stack* ss, Move move, int bonus) { | ^~~~~~~~ search.cpp:2117:46: error: 'Stack' has not been declared 2117 | void update_quiet_stats(const Position& pos, Stack* ss, Move move, int bonus) { | ^~~~~ search.cpp:2117:57: error: 'Move' has not been declared 2117 | void update_quiet_stats(const Position& pos, Stack* ss, Move move, int bonus) { | ^~~~ search.cpp: In function 'void {anonymous}::update_quiet_stats(const int&, int*, int, int)': search.cpp:2120:13: error: request for member 'killers' in '* ss', which is of non-class type 'int' 2120 | if (ss->killers[0] != move) | ^~~~~~~ search.cpp:2122:13: error: request for member 'killers' in '* ss', which is of non-class type 'int' 2122 | ss->killers[1] = ss->killers[0]; | ^~~~~~~ search.cpp:2122:30: error: request for member 'killers' in '* ss', which is of non-class type 'int' 2122 | ss->killers[1] = ss->killers[0]; | ^~~~~~~ search.cpp:2123:13: error: request for member 'killers' in '* ss', which is of non-class type 'int' 2123 | ss->killers[0] = move; | ^~~~~~~ search.cpp:2126:5: error: 'Color' was not declared in this scope; did you mean 'Hypnos::Color'? 2126 | Color us = pos.side_to_move(); | ^~~~~ | Hypnos::Color types.h:111:6: note: 'Hypnos::Color' declared here 111 | enum Color { | ^~~~~ search.cpp:2127:5: error: 'Thread' was not declared in this scope; did you mean 'Hypnos::Thread'? 2127 | Thread* thisThread = pos.this_thread(); | ^~~~~~ | Hypnos::Thread thread.h:38:7: note: 'Hypnos::Thread' declared here 38 | class Thread { | ^~~~~~ search.cpp:2127:13: error: 'thisThread' was not declared in this scope; did you mean 'ExitThread'? 2127 | Thread* thisThread = pos.this_thread(); | ^~~~~~~~~~ | ExitThread search.cpp:2127:30: error: request for member 'this_thread' in 'pos', which is of non-class type 'const int' 2127 | Thread* thisThread = pos.this_thread(); | ^~~~~~~~~~~ search.cpp:2128:29: error: 'us' was not declared in this scope; did you mean 'ss'? 2128 | thisThread->mainHistory[us][move.from_to()] << bonus; | ^~ | ss search.cpp:2128:38: error: request for member 'from_to' in 'move', which is of non-class type 'int' 2128 | thisThread->mainHistory[us][move.from_to()] << bonus; | ^~~~~~~ search.cpp:2129:43: error: request for member 'moved_piece' in 'pos', which is of non-class type 'const int' 2129 | update_continuation_histories(ss, pos.moved_piece(move), move.to_sq(), bonus); | ^~~~~~~~~~~ search.cpp:2129:67: error: request for member 'to_sq' in 'move', which is of non-class type 'int' 2129 | update_continuation_histories(ss, pos.moved_piece(move), move.to_sq(), bonus); | ^~~~~ search.cpp:2129:5: error: 'update_continuation_histories' was not declared in this scope 2129 | update_continuation_histories(ss, pos.moved_piece(move), move.to_sq(), bonus); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ search.cpp:2132:20: error: request for member 'currentMove' in '*(ss + -4)', which is of non-class type 'int' 2132 | if (((ss - 1)->currentMove).is_ok()) | ^~~~~~~~~~~ search.cpp:2134:9: error: 'Square' was not declared in this scope; did you mean 'Hypnos::Square'? 2134 | Square prevSq = ((ss - 1)->currentMove).to_sq(); | ^~~~~~ | Hypnos::Square types.h:212:6: note: 'Hypnos::Square' declared here 212 | enum Square : int { | ^~~~~~ search.cpp:2135:38: error: request for member 'piece_on' in 'pos', which is of non-class type 'const int' 2135 | thisThread->counterMoves[pos.piece_on(prevSq)][prevSq] = move; | ^~~~~~~~ search.cpp:2135:47: error: 'prevSq' was not declared in this scope 2135 | thisThread->counterMoves[pos.piece_on(prevSq)][prevSq] = move; | ^~~~~~ search.cpp: At global scope: search.cpp:2141:1: error: 'Move' does not name a type 2141 | Move Skill::pick_best(size_t multiPV) { | ^~~~ search.cpp:2177:6: error: 'MainThread' has not been declared 2177 | void MainThread::check_time() { | ^~~~~~~~~~ search.cpp:2177:6: warning: no previous declaration for 'void check_time()' [-Wmissing-declarations] search.cpp: In function 'void check_time()': search.cpp:2179:11: error: 'callsCnt' was not declared in this scope 2179 | if (--callsCnt > 0) | ^~~~~~~~ search.cpp:2183:5: error: 'callsCnt' was not declared in this scope 2183 | callsCnt = Limits.nodes ? std::min(512, int(Limits.nodes / 1024)) : 512; | ^~~~~~~~ search.cpp:2183:16: error: 'Limits' was not declared in this scope; did you mean 'Hypnos::Search::Limits'? 2183 | callsCnt = Limits.nodes ? std::min(512, int(Limits.nodes / 1024)) : 512; | ^~~~~~ | Hypnos::Search::Limits search.h:106:19: note: 'Hypnos::Search::Limits' declared here 106 | extern LimitsType Limits; | ^~~~~~ search.cpp:2185:12: error: 'TimePoint' does not name a type 2185 | static TimePoint lastInfoTime = now(); | ^~~~~~~~~ search.cpp:2187:5: error: 'TimePoint' was not declared in this scope; did you mean 'Hypnos::TimePoint'? 2187 | TimePoint elapsed = Time.elapsed(); | ^~~~~~~~~ | Hypnos::TimePoint misc.h:66:7: note: 'Hypnos::TimePoint' declared here 66 | using TimePoint = std::chrono::milliseconds::rep; // A value in milliseconds | ^~~~~~~~~ search.cpp:2188:14: error: expected ';' before 'tick' 2188 | TimePoint tick = Limits.startTime + elapsed; | ^~~~~ | ; search.cpp:2190:9: error: 'tick' was not declared in this scope 2190 | if (tick - lastInfoTime >= 1000) | ^~~~ search.cpp:2190:16: error: 'lastInfoTime' was not declared in this scope 2190 | if (tick - lastInfoTime >= 1000) | ^~~~~~~~~~~~ search.cpp:2193:9: error: 'dbg_print' was not declared in this scope; did you mean 'Hypnos::dbg_print'? 2193 | dbg_print(); | ^~~~~~~~~ | Hypnos::dbg_print misc.h:64:6: note: 'Hypnos::dbg_print' declared here 64 | void dbg_print(); | ^~~~~~~~~ search.cpp:2197:9: error: 'ponder' was not declared in this scope 2197 | if (ponder) | ^~~~~~ search.cpp:2200:43: error: 'elapsed' was not declared in this scope 2200 | if ((Limits.use_time_management() && (elapsed > Time.maximum() || stopOnPonderhit)) | ^~~~~~~ search.cpp:2200:53: error: 'Time' was not declared in this scope; did you mean 'Hypnos::Time'? 2200 | if ((Limits.use_time_management() && (elapsed > Time.maximum() || stopOnPonderhit)) | ^~~~ | Hypnos::Time timeman.h:50:23: note: 'Hypnos::Time' declared here 50 | extern TimeManagement Time; | ^~~~ search.cpp:2200:71: error: 'stopOnPonderhit' was not declared in this scope 2200 | if ((Limits.use_time_management() && (elapsed > Time.maximum() || stopOnPonderhit)) | ^~~~~~~~~~~~~~~ search.cpp:2202:29: error: 'Threads' was not declared in this scope; did you mean 'Hypnos::Threads'? 2202 | || (Limits.nodes && Threads.nodes_searched() >= uint64_t(Limits.nodes))) | ^~~~~~~ | Hypnos::Threads thread.h:134:19: note: 'Hypnos::Threads' declared here 134 | extern ThreadPool Threads; | ^~~~~~~ search.cpp: At global scope: search.cpp:2209:8: error: 'UCI' has not been declared 2209 | string UCI::pv(const Position& pos, Depth depth) { | ^~~ search.cpp:2209:22: error: 'Position' does not name a type 2209 | string UCI::pv(const Position& pos, Depth depth) { | ^~~~~~~~ search.cpp:2209:37: error: 'Depth' has not been declared 2209 | string UCI::pv(const Position& pos, Depth depth) { | ^~~~~ search.cpp:2209:8: warning: no previous declaration for 'std::string pv(const int&, int)' [-Wmissing-declarations] 2209 | string UCI::pv(const Position& pos, Depth depth) { | ^~~ search.cpp: In function 'std::string pv(const int&, int)': search.cpp:2212:5: error: 'TimePoint' was not declared in this scope; did you mean 'Hypnos::TimePoint'? 2212 | TimePoint elapsed = Time.elapsed() + 1; | ^~~~~~~~~ | Hypnos::TimePoint misc.h:66:7: note: 'Hypnos::TimePoint' declared here 66 | using TimePoint = std::chrono::milliseconds::rep; // A value in milliseconds | ^~~~~~~~~ search.cpp:2213:11: error: 'RootMoves' does not name a type 2213 | const RootMoves& rootMoves = pos.this_thread()->rootMoves; | ^~~~~~~~~ search.cpp:2214:43: error: request for member 'this_thread' in 'pos', which is of non-class type 'const int' 2214 | size_t pvIdx = pos.this_thread()->pvIdx; | ^~~~~~~~~~~ search.cpp:2215:55: error: 'Options' was not declared in this scope; did you mean 'Hypnos::Options'? 2215 | size_t multiPV = std::min(size_t(Options["MultiPV"]), rootMoves.size()); | ^~~~~~~ | Hypnos::Options uci.h:91:24: note: 'Hypnos::Options' declared here 91 | extern UCI::OptionsMap Options; | ^~~~~~~ search.cpp:2215:76: error: 'rootMoves' was not declared in this scope 2215 | size_t multiPV = std::min(size_t(Options["MultiPV"]), rootMoves.size()); | ^~~~~~~~~ search.cpp:2216:39: error: 'Threads' was not declared in this scope; did you mean 'Hypnos::Threads'? 2216 | uint64_t nodesSearched = Threads.nodes_searched(); | ^~~~~~~ | Hypnos::Threads thread.h:134:19: note: 'Hypnos::Threads' declared here 134 | extern ThreadPool Threads; | ^~~~~~~ search.cpp:2221:47: error: 'VALUE_INFINITE' was not declared in this scope; did you mean 'Hypnos::VALUE_INFINITE'? 2221 | bool updated = rootMoves[i].score != -VALUE_INFINITE; | ^~~~~~~~~~~~~~ | Hypnos::VALUE_INFINITE types.h:148:17: note: 'Hypnos::VALUE_INFINITE' declared here 148 | constexpr Value VALUE_INFINITE = 32001; | ^~~~~~~~~~~~~~ search.cpp:2226:9: error: 'Depth' was not declared in this scope; did you mean 'Hypnos::Depth'? 2226 | Depth d = updated ? depth : std::max(1, depth - 1); | ^~~~~ | Hypnos::Depth types.h:200:7: note: 'Hypnos::Depth' declared here 200 | using Depth = int; | ^~~~~ search.cpp:2227:9: error: 'Value' was not declared in this scope; did you mean 'Hypnos::Value'? 2227 | Value v = updated ? rootMoves[i].uciScore : rootMoves[i].previousScore; | ^~~~~ | Hypnos::Value types.h:143:7: note: 'Hypnos::Value' declared here 143 | using Value = int; | ^~~~~ search.cpp:2229:13: error: 'v' was not declared in this scope 2229 | if (v == -VALUE_INFINITE) | ^ search.cpp:2230:17: error: 'VALUE_ZERO' was not declared in this scope; did you mean 'Hypnos::VALUE_ZERO'? 2230 | v = VALUE_ZERO; | ^~~~~~~~~~ | Hypnos::VALUE_ZERO types.h:145:17: note: 'Hypnos::VALUE_ZERO' declared here 145 | constexpr Value VALUE_ZERO = 0; | ^~~~~~~~~~ search.cpp:2232:44: error: 'v' was not declared in this scope 2232 | bool tb = TB::RootInTB && std::abs(v) <= VALUE_TB; | ^ search.cpp:2232:50: error: 'VALUE_TB' was not declared in this scope; did you mean 'Hypnos::VALUE_TB'? 2232 | bool tb = TB::RootInTB && std::abs(v) <= VALUE_TB; | ^~~~~~~~ | Hypnos::VALUE_TB types.h:154:17: note: 'Hypnos::VALUE_TB' declared here 154 | constexpr Value VALUE_TB = VALUE_MATE_IN_MAX_PLY - 1; | ^~~~~~~~ search.cpp:2239:28: error: 'd' was not declared in this scope 2239 | << " depth " << d << " seldepth " << rootMoves[i].selDepth << " multipv " << i + 1 | ^ search.cpp:2240:28: error: 'UCI' has not been declared 2240 | << " score " << UCI::value(v); | ^~~ search.cpp:2243:19: error: 'UCI' has not been declared 2243 | ss << UCI::wdl(v, pos.game_ply()); | ^~~ search.cpp:2243:35: error: request for member 'game_ply' in 'pos', which is of non-class type 'const int' 2243 | ss << UCI::wdl(v, pos.game_ply()); | ^~~~~~~~ search.cpp:2250:79: error: 'elapsed' was not declared in this scope 2250 | ss << " nodes " << nodesSearched << " nps " << nodesSearched * 1000 / elapsed | ^~~~~~~ search.cpp:2251:31: error: 'TT' was not declared in this scope; did you mean 'Hypnos::TT'? 2251 | << " hashfull " << TT.hashfull() << " tbhits " << tbHits << " time " << elapsed << " pv"; | ^~ | Hypnos::TT tt.h:106:27: note: 'Hypnos::TT' declared here 106 | extern TranspositionTable TT; | ^~ search.cpp:2253:14: error: 'Move' was not declared in this scope; did you mean 'Hypnos::Move'? 2253 | for (Move m : rootMoves[i].pv) | ^~~~ | Hypnos::Move types.h:429:7: note: 'Hypnos::Move' declared here 429 | class Move { | ^~~~ search.cpp:2255:5: error: expected primary-expression before '}' token 2255 | } | ^ search.cpp:2254:58: error: expected ';' before '}' token 2254 | ss << " " << UCI::move(m, pos.is_chess960()); | ^ | ; 2255 | } | ~ search.cpp:2255:5: error: expected primary-expression before '}' token 2255 | } | ^ search.cpp:2254:58: error: expected ')' before '}' token 2254 | ss << " " << UCI::move(m, pos.is_chess960()); | ^ | ) 2255 | } | ~ search.cpp:2253:13: note: to match this '(' 2253 | for (Move m : rootMoves[i].pv) | ^ search.cpp:2255:5: error: expected primary-expression before '}' token 2255 | } | ^ search.cpp: At global scope: search.cpp:2265:6: error: 'RootMove' has not been declared 2265 | bool RootMove::extract_ponder_from_tt(Position& pos) { | ^~~~~~~~ search.cpp:2265:39: error: 'Position' was not declared in this scope; did you mean 'Hypnos::Position'? 2265 | bool RootMove::extract_ponder_from_tt(Position& pos) { | ^~~~~~~~ | Hypnos::Position position.h:80:7: note: 'Hypnos::Position' declared here 80 | class Position { | ^~~~~~~~ search.cpp:2265:49: error: 'pos' was not declared in this scope; did you mean 'pow'? 2265 | bool RootMove::extract_ponder_from_tt(Position& pos) { | ^~~ | pow search.cpp:2291:6: error: variable or field 'rank_root_moves' declared void 2291 | void Tablebases::rank_root_moves(Position& pos, Search::RootMoves& rootMoves) { | ^~~~~~~~~~ search.cpp:2291:34: error: 'Position' was not declared in this scope; did you mean 'Hypnos::Position'? 2291 | void Tablebases::rank_root_moves(Position& pos, Search::RootMoves& rootMoves) { | ^~~~~~~~ | Hypnos::Position position.h:80:7: note: 'Hypnos::Position' declared here 80 | class Position { | ^~~~~~~~ search.cpp:2291:44: error: 'pos' was not declared in this scope; did you mean 'pow'? 2291 | void Tablebases::rank_root_moves(Position& pos, Search::RootMoves& rootMoves) { | ^~~ | pow search.cpp:2291:57: error: 'RootMoves' is not a member of 'Search'; did you mean 'Hypnos::Search::RootMoves'? 2291 | void Tablebases::rank_root_moves(Position& pos, Search::RootMoves& rootMoves) { | ^~~~~~~~~ search.h:83:7: note: 'Hypnos::Search::RootMoves' declared here 83 | using RootMoves = std::vector<RootMove>; | ^~~~~~~~~ search.cpp:2291:68: error: 'rootMoves' was not declared in this scope 2291 | void Tablebases::rank_root_moves(Position& pos, Search::RootMoves& rootMoves) { | ^~~~~~~~~ search.cpp:2338:1: error: expected declaration before '}' token 2338 | } // namespace Hypnos | ^ search.cpp:2031:6: warning: 'void {anonymous}::update_all_stats(const int&, int*, int, int, int, int, int*, int, int*, int, int)' defined but not used [-Wunused-function] 2031 | void update_all_stats(const Position& pos, | ^~~~~~~~~~~~~~~~ make[1]: *** [<builtin>: search.o] Error 1 make[1]: Leaving directory '/c/Users/BigZer/AppData/Local/Temp/tmpah7g8x3l/HypnoS/HypnoS-tmp/src' make: *** [Makefile:796: build] Error 2