Open Chun-YIp opened 7 years ago
btw, Hi John
The chess AI was limited to Linux for exactly that reason
I needed to define an environment variable to enable thread cancellation, but there wasn't an easy way to do it
Try it on Linux, or if that's not an option, try adding the following as the first line in ChessPlusPlus.cpp
#define _XOPEN_SOURCE
You can also pass -D_XOPEN_SOURCE
as a compile flag to define it at compile time
That macro might enable a function prototype in Cygwin's glibc implementation that might work
Worst case, comment out that line and instead of running the AI as ./chess
run it as OMP_CANELLATION=true ./chess
That should define it in the command line before the program is ran
Hope that works for you
Also hi chun
Fully pulled then, using cygwin with correct packages installed to compile, Got an error: