Some changes for basic support of MinGW #76
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
These changes are still a hot mess. They compile on MINGW64 with the compilers from MSYS2.
But all tests are failing with errors like the following:
If I understand the error messages correctly, it is trying to load import libraries (with file extension
.dll.a
) which fails (unsurprisingly). Instead, it should be trying to load the dynamic load libraries (with file extension.dll
which are installed in thebin
folder on Windows).I haven't looked yet into why that is happening. Any feedback would be very welcome.
Instead of adding a dependency on a dlopen wrapper library, I thought it might be better to use native Windows functions to load symbols from the libraries on runtime. (Might have a performance advantage. But since it doesn't run yet, I can't tell whether that is the case.)
There are also still a couple of FIXME comments where the implementation isn't complete yet. I figured that it might still make sense to share what I have so far.