Skip to content

Using nanobind and PyObject_CallObject #204

Closed Answered by baverbud
baverbud asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, this seems resolved by adding

__attribute__ ((visibility("default")))

to the struct definition. Besides hash_code's matching and type_index working to find the type in the internals.type_c2p map, I can now see the type in the symbols of the so produced by the nanobind cmake routines.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@baverbud
Comment options

@baverbud
Comment options

@baverbud
Comment options

@baverbud
Comment options

Answer selected by baverbud
@wjakob
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants