Skip to content

initModule symbol not visible in 1.64 #131

@rosswhitfield

Description

@rosswhitfield

I'm compiling a project that sets the default visibility to hidden using CMAKE_CXX_VISIBILITY_PRESET=hidden. This worked in 1.63 as the initModule is set back to default here, unfortunately after #1 BOOST_PYTHON_USE_GCC_SYMBOL_VISIBILITY is no longer defined so the visibility is not getting set back to default.

So I'm getting errors like ImportError: dynamic module does not define init function (init_kernel) and the equivalent for python 3 ImportError: dynamic module does not define module export function (PyInit__kernel)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions