简体   繁体   中英

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)?

您应该能够使用nm (可能需要--demangle参数)来获取库中所有内容的列表,然后使用grep来过滤结果,例如查找\\d T functionname\\(或类似的东西)。

看看nm命令,它可以为您提供所需的信息

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM