Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Checking existence of a function in a library in linux

During dynamic linking a weird undefined function reference appears. I know the name of the library which should contain this function. Is there any Linux command to make sure the function exists in the library (.a file)?

like image 287
lashgar Avatar asked Aug 14 '12 07:08

lashgar


1 Answers

You should be able to use nm (might require the --demangle parameter) to get a list of everything being inside the library, then use grep to filter the results, e.g. look for \d T functionname\( or something like that.

like image 195
Mario Avatar answered Oct 06 '22 01:10

Mario