mkdir obj
g++ -std=c++23 -c -o obj/benchmark.o source/benchmark.cpp -O3 -lpthread
g++ -std=c++23 -c -o obj/bitboards.o source/bitboards.cpp -O3 -lpthread
g++ -std=c++23 -c -o obj/board.o source/board.cpp -O3 -lpthread
g++ -std=c++23 -c -o obj/evaluate.o source/evaluate.cpp -O3 -lpthread
g++ -std=c++23 -c -o obj/main.o source/main.cpp -O3 -lpthread
g++ -std=c++23 -c -o obj/movegen.o source/movegen.cpp -O3 -lpthread
g++ -std=c++23 -c -o obj/perft.o source/perft.cpp -O3 -lpthread
g++ -std=c++23 -c -o obj/search.o source/search.cpp -O3 -lpthread
g++ -std=c++23 -c -o obj/tt.o source/tt.cpp -O3 -lpthread
g++ -std=c++23 -c -o obj/uci.o source/uci.cpp -O3 -lpthread
g++ -std=c++23 -c -o obj/utils.o source/utils.cpp -O3 -lpthread
In file included from source/tt.h:3,
from source/board.cpp:3:
source/search.h: In member function 'void History::Update(bool, Move, int)':
source/search.h:42:33: error: 'clamp' is not a member of 'std'
42 | int clampedBonus = std::clamp(bonus, -maxHistory, maxHistory);
| ^~~~~
In file included from source/tt.h:3,
from source/main.cpp:4:
source/search.h: In member function 'void History::Update(bool, Move, int)':
source/search.h:42:33: error: 'clamp' is not a member of 'std'
42 | int clampedBonus = std::clamp(bonus, -maxHistory, maxHistory);
| ^~~~~
In file included from source/tt.h:3,
from source/tt.cpp:1:
source/search.h: In member function 'void History::Update(bool, Move, int)':
source/search.h:42:33: error: 'clamp' is not a member of 'std'
42 | int clampedBonus = std::clamp(bonus, -maxHistory, maxHistory);
| ^~~~~
In file included from source/benchmark.cpp:2:
source/search.h: In member function 'void History::Update(bool, Move, int)':
source/search.h:42:33: error: 'clamp' is not a member of 'std'
42 | int clampedBonus = std::clamp(bonus, -maxHistory, maxHistory);
| ^~~~~
In file included from source/search.cpp:1:
source/search.h: In member function 'void History::Update(bool, Move, int)':
source/search.h:42:33: error: 'clamp' is not a member of 'std'
42 | int clampedBonus = std::clamp(bonus, -maxHistory, maxHistory);
| ^~~~~
make: *** [Makefile:36: obj/main.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Makefile:36: obj/tt.o] Error 1
make: *** [Makefile:36: obj/board.o] Error 1
make: *** [Makefile:36: obj/benchmark.o] Error 1
make: *** [Makefile:36: obj/search.o] Error 1