For Mobile Tools

New advanced Search Engine

Saturday, October 10, 2009

How do I find which library in /usr/lib holds a certain function?(#32)

How do I find which library in /usr/lib holds a certain function?(#32)
What if you're compiling and you've missed a library that needed linking in? All gcc reports are function names... Here's a simple command that'll find what you're looking for:

for i in *; do echo $i:;nm $i|grep tgetnum 2>/dev/null;done

Where tgetnum is the name of the function you're looking for.

0 comments:

Post a Comment