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

Fix shared library not exporting symbols on Windows #1684

Merged
merged 2 commits into from
Dec 10, 2024

Conversation

zcbenz
Copy link
Contributor

@zcbenz zcbenz commented Dec 10, 2024

Refs #1513.

On Windows a shared library does not have its symbols exported by default, and usually devs would add a dllexport prefix for each symbol to export in source code.

In this PR I use a feature of CMake to automate it, and due to the feature not exporting global variables, I also change the global_formatter variable to be a getter function instead.

Copy link
Member

@awni awni left a comment

Choose a reason for hiding this comment

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

Looks good, will merge when tests clear.

@awni awni merged commit 92ab6bd into ml-explore:main Dec 10, 2024
5 checks passed
@zcbenz zcbenz deleted the msvc-dll branch January 29, 2025 11:15
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