-
-
Notifications
You must be signed in to change notification settings - Fork 244
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
Include shlwapi.h explicitly on Windows #2407
Conversation
Looking for StrStrIA in the shlwapi library is not reliable due to stdcall on mingw32.
edit: d300feb is sufficient, I just forgot to apply the patch. |
During configuration this still occurs in the mingw32 environment.
This is due to name mangling that occurs in 32-bit windows with stdcall:
|
Do you think it cleanly applies to 1.14.0? |
I can confirm that this fixes things for the "windows" compiler, at least in terms of the segfault. |
didn't you want to fix the |
This addresses the issues for Windows-based compilation in general actually. Was there something else that needed to be addressed here? |
No. I'm just glad I got to test the fix before you merged anything. |
* Include shlwapi.h explicitly * Add shlwapi library to LINK_LIB when header is detected Looking for StrStrIA in the shlwapi library is not reliable due to stdcall on mingw32.
I think this PR opened a problem, because So, since this commit, the following is no longer sufficient to link hdf5 for me:
|
@emmenlau I think the problem would be easier to track if to created a new issue. |
This fixes builds on mingw32 and other compilers.
I suspect this will fix #2396 , #2408