linux下在加載動(dòng)態(tài)鏈接庫(kù)時(shí)若缺少某個(gè)依賴庫(kù)導(dǎo)致報(bào)undefined symbol:xxx(一個(gè)編碼后的函數(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&)