Skip to content

how to debug undefined symbol #188

Answered by lyskov
jwuttke asked this question in Q&A
Discussion options

You must be logged in to vote

This is indeed an annoying issue. Simplest way to debug this would to use UNIX nm utility. I usually do something like nm -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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jwuttke
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