美文网首页
linux下查看动态链接库undefined symbol后的原

linux下查看动态链接库undefined symbol后的原

作者: 愤愤的有痣青年 | 来源:发表于2019-05-21 11:05 被阅读0次

linux下在加载动态链接库时若缺少某个依赖库导致报undefined symbol:xxx(一个编码后的函数名),若要解析出此函数名,则使用一下命令
echo xxx| c++filt

例如:

echo _ZN2cv7imwriteERKSsRKNS_11_InputArrayERKSt6vectorIiSaIiEE| c++filt
# 输出
cv::imwrite(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&, std::vector<int, std::allocator<int> > const&)

相关文章

网友评论

      本文标题:linux下查看动态链接库undefined symbol后的原

      本文链接:https://www.haomeiwen.com/subject/tbydzqtx.html