cimarronOST / Monolith

UCI chess engine
GNU General Public License v3.0
9 stars 1 forks source link

Can't compile on macOS #13

Open nguyenpham opened 3 years ago

nguyenpham commented 3 years ago

I have tried to compile Monolith on my iMac, using both g++ and clang but no hope. Below is one of my tries and the error about linking:

make ARCH=x64 COMP=clang++ 
clang++ -std=c++17 -O3 -m64 -static -Wall -Wextra -Wpedantic -DNDEBUG attack.cpp bench.cpp bit.cpp board.cpp eval.cpp magic.cpp main.cpp misc.cpp move.cpp movegen.cpp movepick.cpp movesort.cpp polyglot.cpp random.cpp search.cpp syzygy.cpp texel.cpp thread.cpp time.cpp trans.cpp types.cpp uci.cpp zobrist.cpp -pthread -s -o Monolith-x64.exe
ld: warning: option -s is obsolete and being ignored
ld: library not found for -lcrt0.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
cimarronOST commented 2 years ago

I've never considered to compile it for Mac, but I'll look into it.