libunwind链接时报错:undefined reference to `_Ux86_64_init_local'

清泛原创
编译安装libunwind后,代码编译链接时报错:undefined reference to `_Ux86_64_init_local',链接选项加了 -lunwind,仍然报错。

原因:编译出来的libunwind拆分成了很多个模块,部分函数可能不在默认模块中。

解决:-lunwind -lunwind-x86_64 链接两个模块即可。

分享到:
  网友评论(0)
 
回到顶部