-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scikit does not compile with Visual Studio 16 2019 #142
Comments
Thanks for the report. The compilation error regarding RIW is easy to fix: it is due to the fact that MSVC 19.29 does not allow function members defined inside the class to use typedef members defined after the function members. So we just need to move lines from that one to that one in riw.hh before the first function member of the class. However, there remains an issue with the compilation of MCTS due to MSVC 19.28+ requiring the compilation flag /Zc:lambda to compile default lambdas used in template class constructors and referencing the class' template types, as in this line of mcts.hh. Other compilers don't need to activate such feature flags to compile this piece of code. What could be considered as a bug has been already filed to MSVC's development team: see this bug report which is exactly the same issue as the one preventing from compiling the aforementioned line in We need here to decide if we want to explicitly pass the |
So the RIW compilation error is a no-brainer, whereas the MCTS one requires to make assumptions on the version of MSVC we are using: we need to reject MSVC versions lower than 16.8 and to add the |
@fteicht Please push your fix here or on your repo, I will make it work for any MSVC version. |
🐛 Bug
When.moving to
windows-latest
on GitHubActions we got the following environment:-- Building for: Visual Studio 16 2019
-- The C compiler identification is MSVC 19.29.30137.0
-- The CXX compiler identification is MSVC 19.29.30137.0
This causes the following error:
The text was updated successfully, but these errors were encountered: