Syzygy probing code and Visual Studio

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

dannyb
Posts: 78
Joined: Mon Jul 09, 2018 6:08 pm
Full name: Daniel Bennett

Syzygy probing code and Visual Studio

Post 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!
Sven
Posts: 4052
Joined: Thu May 15, 2008 9:57 pm
Location: Berlin, Germany
Full name: Sven Schüle

Re: Syzygy probing code and Visual Studio

Post 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.
Sven Schüle (engine author: Jumbo, KnockOut, Surprise)
User avatar
Look
Posts: 364
Joined: Thu Jun 05, 2014 2:14 pm
Location: Iran
Full name: Mehdi Amini

Re: Syzygy probing code and Visual Studio

Post by Look »

I think you can use Clang as your compiler while keeping Visual Studio as your IDE.
Farewell.
dannyb
Posts: 78
Joined: Mon Jul 09, 2018 6:08 pm
Full name: Daniel Bennett

Re: Syzygy probing code and Visual Studio

Post 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.