Skip to content

[Bug] Cannot bind class. #229

Closed Answered by wjakob
tbridel asked this question in Q&A
Jun 10, 2023 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

__ZN7COESA76C1Ev is the mangled form of COESA76::COESA76() (you can use the c++filt program to de-mangle symbols). So the nanobind extension can't resolve the symbol of the constructor, which is a basic C++ compilation/linking issue and not a nanobind problem.

Likely, your class will need __attribute__ ((visibility("default"))) annotations to make sure its symbols are actually exported. Or you forgot to link the nanobind extension against the other library containing this constructor.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@tbridel
Comment options

@wjakob
Comment options

Answer selected by tbridel
@tbridel
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