Skip to content

classes exported from different modules, built with different versions of pybind11 are not interoperable (anymore)? #5133

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

You must be logged in to vote

(Sorry for the long delay responding. I'm just back from a vacation.)

I'm not sure what was changed in what version.

The first thing that comes to mind is this bug fix:

https://github.com/pybind/pybind11/pull/5026/files

Could that explain your observation?

If that's it and it worked before for you: I believe it only worked by luck. But I never spent the time to fully reason out for myself when and why the "_sh_def" should be inserted. My main thought was: better safe than sorry.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rhaschke
Comment options

@rwgk
Comment options

rwgk May 29, 2024
Collaborator

Answer selected by rhaschke
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