Repository navigation
|
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? |
Answered by
lyskov
Mar 25, 2022
Replies: 1 comment
|
This is indeed an annoying issue. Simplest way to debug this would to use UNIX |
0 replies
Answer selected by
jwuttke
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.