-
|
Say, definition of class Binder will pass, pybind11 will pass, compiler will pass, linker will pass - but the Python import statement will fail with a message like How to debug this error? Is there a way to make the error message more explicit? Is there a way to catch this error earlier? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
This is indeed an annoying issue. Simplest way to debug this would to use UNIX |
Beta Was this translation helpful? Give feedback.
This is indeed an annoying issue. Simplest way to debug this would to use UNIX
nmutility. I usually do something likenm -D --demangle --undefined-only <your-project-lib>.so | grep <primary-namespace>. Also (and sometimes this a bit easier) linking on MacOS will immediately fail if there is unresolved symbols.