Syzygy probing code and Visual Studio

Discussion of chess software programming and technical issues.

Moderators: hgm, Harvey Williamson, bob

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
Post Reply
dannyb
Posts: 5
Joined: Mon Jul 09, 2018 4:08 pm
Full name: Daniel Bennett

Syzygy probing code and Visual Studio

Post by dannyb » Tue Jan 01, 2019 8:07 pm

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: 3753
Joined: Thu May 15, 2008 7:57 pm
Location: Berlin, Germany
Full name: Sven Schüle
Contact:

Re: Syzygy probing code and Visual Studio

Post by Sven » Tue Jan 01, 2019 9:00 pm

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)

Look
Posts: 133
Joined: Thu Jun 05, 2014 12:14 pm
Location: Iran
Full name: Mehdi Amini
Contact:

Re: Syzygy probing code and Visual Studio

Post by Look » Wed Jan 02, 2019 10:41 am

I think you can use Clang as your compiler while keeping Visual Studio as your IDE.
Mehdi Amini
www.my-c-codes.com/

Farewell.

dannyb
Posts: 5
Joined: Mon Jul 09, 2018 4:08 pm
Full name: Daniel Bennett

Re: Syzygy probing code and Visual Studio

Post by dannyb » Sun Jan 06, 2019 12:29 pm

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.

Post Reply