amchess / ShashChess

A try to implement Alexander Shashin's theory on a Stockfish's derived chess engine
GNU General Public License v3.0
130 stars 28 forks source link

Error by compiling MacOS #20

Closed ArminHHJ closed 2 years ago

ArminHHJ commented 3 years ago

Intel Mac, Catalina 10.15.7

use this command make profile-build ARCH=x86-64-bmi2 COMP=clang strip shashchess mv 'shashchess' 'ShashChess17-x86-64-bmi2' make clean

Get one Error: ld: library not found for -lws2_32 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: [shashchess] Error 1 make: [build] Error 2

=> file not build

Get also four warnings

montecarlo.cpp:68:14: warning: unused variable 'REWARD_MATE' [-Wunused-const-variable] const Reward REWARD_MATE = Reward(1.0); ^ In file included from montecarlo.cpp:30: ./montecarlo.h:110:10: warning: private field 'max_epsilon' is not used [-Wunused-private-field] double max_epsilon = 0.99; ^ ./montecarlo.h:111:10: warning: private field 'min_epsilon' is not used [-Wunused-private-field] double min_epsilon = 0.00; ^ ./montecarlo.h:112:10: warning: private field 'decay_rate' is not used [-Wunused-private-field] double decay_rate = 0.8; ^ 4 warnings generated.

amchess commented 3 years ago

you have to remove the flag -lws2_32. The warnings are normal.

magicianfromriga commented 3 years ago

Hi, I am facing the same problem on Linux. How do we remove this flag?

amchess commented 3 years ago

Simply on the Makefile