Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的 C 代码中使用 libltdl 来动态加载 libtool 制作的共享对象文件。显然,libtool 的 dlopen 版本返回的每个模块句柄都在内部保留了一个引用计数。有没有办法访问这个引用计数?
const lt_dlinfo *info; info = lt_dlgetinfo(myhandle); printf("refcount is %d\n", info->ref_count);