Skip to content
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

Fixed MinGW with shared libs #583

Merged
merged 4 commits into from
Feb 18, 2025
Merged

Fixed MinGW with shared libs #583

merged 4 commits into from
Feb 18, 2025

Conversation

walbourn
Copy link
Member

@walbourn walbourn commented Feb 15, 2025

  • For inline declared function bodies in classes, GNUs parser emits an error with declspec dllimport. The workaround is to add a redundant inline.

  • There are also a lot of warnings about ignore attributes on inline functions with dllimport, but for MSVC you need the annotation for correctness.

@walbourn walbourn self-assigned this Feb 15, 2025
@walbourn
Copy link
Member Author

@walbourn walbourn added conformance cmake Related to CMake build labels Feb 15, 2025
@walbourn walbourn merged commit 8e9fa60 into main Feb 18, 2025
106 checks passed
@walbourn walbourn deleted the mingwsharedlibs branch February 18, 2025 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmake Related to CMake build conformance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants