Skip to content

Dynamically loaded embedding doesn't know the spelling of jl_init #28824

@GunnarFarneback

Description

@GunnarFarneback

When dynamically loading libjulia, it depends on how Julia was built whether you should initialize it with jl_init or jl_init__threading. While it's not the most difficult workaround to check which of the two functions exists in the loaded library, it's far from elegant or convenient, as well as undocumented.

(This is a regression from Julia 0.6, where it was always jl_init.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    embeddingEmbedding Julia using the C API

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions