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.