linux下在加載動態(tài)鏈接庫時若缺少某個依賴庫導(dǎo)致報(bào)undefined symbol:xxx(一個編碼后的函數(shù)名),若要解析出此函數(shù)名,則使用一下命令
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&)