linux下查看动态链接库undefined symbol后的原
2019-05-21 本文已影响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&)