Skip to content

fix isnan#27

Merged
takojunior merged 4 commits intomasterfrom
fix_isnan
Jul 14, 2022
Merged

fix isnan#27
takojunior merged 4 commits intomasterfrom
fix_isnan

Conversation

@takojunior
Copy link
Copy Markdown
Contributor

The PR is to fix a compiling issue in using Visual Studio C++ compiler. This issue was observed by Danielle initially when we pip install seq2pat on Windows with a compiler in Visual Studio C++ Build Tools.

The issue is error code C2668: `fpclassify`: ambiguous call to overloaded function, which is caused by the isnan function introduced in my last commit. This function doesn't cause the issue in my tests on Mac using Clang 10.0.0.

This seems to be a known issue with VC compiler and the solution can be referred to a discussion here. Later on, we would need to have a test on Windows once backend gets updated.

Signed-off-by: Xin Wang <xin.wang@fmr.com>
Copy link
Copy Markdown
Contributor

@dorukkilitcioglu dorukkilitcioglu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good from my side. Perhaps not important for now, but might be possible to explore Windows compilation as well: https://github.blog/changelog/2022-01-11-github-actions-jobs-running-on-windows-latest-are-now-running-on-windows-server-2022/

@takojunior
Copy link
Copy Markdown
Contributor Author

takojunior commented Jul 14, 2022

All good from my side. Perhaps not important for now, but might be possible to explore Windows compilation as well: https://github.blog/changelog/2022-01-11-github-actions-jobs-running-on-windows-latest-are-now-running-on-windows-server-2022/

Thanks @dorukkilitcioglu , there shows a comprehensive VC components and build tools in the list. I will look into this.

Update: The Github actions are updated to test different platforms: ubuntu, macos and windows.

Signed-off-by: Xin Wang <xin.wang@fmr.com>
Signed-off-by: Xin Wang <xin.wang@fmr.com>
Signed-off-by: Xin Wang <xin.wang@fmr.com>
@takojunior takojunior merged commit 08f4091 into master Jul 14, 2022
@takojunior takojunior deleted the fix_isnan branch July 14, 2022 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants