Page 1 of 1

Syzygy probing code and Visual Studio

Posted: Tue Jan 01, 2019 9:07 pm
by dannyb
I'd like to make my little engine probe the Syzygy bases and I've adapted the probing code found in Cfish (I guess it's the most updated one coming from Ronald supporting 7 pieces) but I can't compile it with Visual Studio 2017 because it is not compliant with the C11 standard revision and the probing code uses atomic operations. Is there a solution besides changing compiler? (though I would like to stick with Visual Studio). Thanks and happy new year!

Re: Syzygy probing code and Visual Studio

Posted: Tue Jan 01, 2019 10:00 pm
by Sven
Have you tried to compile the probing code as C++? I guess the few necessary code changes might be done easier than finding a correct replacement for the non-existent "atomic" stuff.

Re: Syzygy probing code and Visual Studio

Posted: Wed Jan 02, 2019 11:41 am
by Look
I think you can use Clang as your compiler while keeping Visual Studio as your IDE.

Re: Syzygy probing code and Visual Studio

Posted: Sun Jan 06, 2019 1:29 pm
by dannyb
I got some errors when trying to compile it as C++ code. I've solved the problem by installing Clang. I can now compile without any issue.

Thank you.