Skip to content

Use Base's MPFR library name in ccall - #96

Open
KristofferC wants to merge 1 commit into
JuliaString:mainfrom
KristofferC:kc/base-lib-names
Open

KristofferC wants to merge 1 commit into
JuliaString:mainfrom
KristofferC:kc/base-lib-names

Conversation

@KristofferC

Copy link
Copy Markdown

Julia 1.14 on Windows no longer installs the unversioned libmpfr.dll, only libmpfr-6.dll, so a ccall into :libmpfr fails with could not load library there (JuliaLang/julia#63849). Use Base.MPFR.libmpfr, which names the library that Base itself loads.

Julia versions before 1.9 do not define it, so fall back to the bare name there.

🤖 Generated with Claude Code

Julia 1.14 on Windows no longer installs the unversioned `libmpfr.dll`, only `libmpfr-6.dll`, so a `ccall` into `:libmpfr` fails with `could not load library` there (JuliaLang/julia#63849). Use `Base.MPFR.libmpfr`, which names the library that Base itself loads.

Julia versions before 1.9 do not define it, so fall back to the bare name there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant