How to find the library, which contains the definition of particular function? I am getting linker error.
How to find the library, which contains the definition of particular function? I am
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use the
nmcommand-line tool to list exported symbols in binaries:According to the manual, ‘t’ means that the symbol is in the code (text) segment, and uppercase means it’s public.
If you have a symbol that you’re looking for, you can use
nmto make the symbols exported by a library accessible to e.g. grep:This command-line is an untested sketch, but it should show the concept.