Checking if a function exists in a library on Linux

During dynamic linking, a strange undefined link appears. I know the name of the library that should contain this function. Is there any linux command to make sure that the function already exists in the library (.a file)?

+5
source share
2 answers

You can use nm(a parameter may be required --demangle) to get a list of everything that is inside the library, then use it grepto filter the results, for example. find \d T functionname\(or something like that.

+9
source

Look at the team nmthat should provide you with the information you are looking for

+1
source

All Articles