Syzygy probing code and Visual Studio
Moderators: hgm, Rebel, chrisw
-
- Posts: 78
- Joined: Mon Jul 09, 2018 6:08 pm
- Full name: Daniel Bennett
Syzygy probing code and Visual Studio
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!
-
- 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
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)
-
- Posts: 366
- Joined: Thu Jun 05, 2014 2:14 pm
- Location: Iran
- Full name: Mehdi Amini
Re: Syzygy probing code and Visual Studio
I think you can use Clang as your compiler while keeping Visual Studio as your IDE.
Farewell.
-
- Posts: 78
- Joined: Mon Jul 09, 2018 6:08 pm
- Full name: Daniel Bennett
Re: Syzygy probing code and Visual Studio
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.
Thank you.