如何将vtable符号更改为全局符号?

发布于 2025-01-14 03:50:58 字数 525 浏览 3 评论 0原文

我编译了一个so文件(libarfoundation_core.so),它有一个基类ARSRGpuFilter,以及另一个需要依赖的so文件,编译后的so文件无法编译,因为“undefined reference to `vtable forcameralink::ARSRGpuFilter'” 输入图片description here

然后,我发现ARRSRGpuFilter的vtable符号是Local Symbol,那么如何将ARRSRGpuFilter的vtable符号更改为全局符号呢?

输入图片此处描述

I have compiled a so file(libarfoundation_core.so) which has a base class ARSRGpuFilter, and a other so file which need dependency the compiled so file could not compiled because " undefined reference to `vtable for cameralink::ARSRGpuFilter'"
enter image description here

Then, I find the vtable symbol of the ARSRGpuFilter is a Local Symbol, so how to change the vtable symbol of ARSRGpuFilter to a global symbol?

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浅笑轻吟梦一曲 2025-01-21 03:50:58

将“attribute((visibility("default")))”放在“class”之后,将属性应用于类型声明。它对我有用......

place "attribute((visibility("default")))" after "class" to apply attribute to type declaration. it works for me...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文