-
Notifications
You must be signed in to change notification settings - Fork 272
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
Fix UMFPACK compilation errors in Visual Studio 2017 #855
Fix UMFPACK compilation errors in Visual Studio 2017 #855
Conversation
Thank you for tracking this down. If I understand Microsoft's documentation correctly, Could you please show the exact error message that you are seeing before you made that change? Maybe, we are missing to select the C11 or C++11 standard for some targets? |
3.The /std:c11 option is available starting in Visual Studio 2019 version 16.8.
|
Thank you for clarifying. I was (erroneously) assuming that the In that case, it would be nice if you could remove the |
This change seems to be causing warnings like the following during compilation with Visual Studio 2022 on the GitHub-runners:
That might mean that the pragma is ignored with that compiler. Does it work correctly for you with Visual Studio 2017? |
Could it be that MSVC doesn't cope with spaces in the pragma? Does it work if you use |
Sorry for the late reply. |
I'm back from vacation and getting caught up. I revised the PR to remove the spaces from the pragmas, to see if that changes the warnings. |
Removing the spaces in the pragmas causes all the |
0aed651
into
DrTimothyAldenDavis:dev2
When building suitesparse with Visual Studio 2017, I encountered some compilation errors related to UMFPACK. After investigation, I found that it was caused by Visual Studio 2017 not supporting c11 (_Pragma).
This PR fixed this problem.