如果lt_dlopen失败,如何获取更多信息? [英] How to get more info if lt_dlopen fails?

查看:175
本文介绍了如果lt_dlopen失败,如何获取更多信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在调用lt_dlopen并得到找不到通用文件的错误(翻译的errno文本).由于文件确实存在,因此我如何获得有关实际失败原因的更多信息.

I'm calling lt_dlopen and getting a generic file not found error (translated errno text). How can I get more information about what is actually failing, as the file is definitely there.

这是一个加载C ++库的C ++程序.在同一程序中的其他地方,我使用相同的命令可以正常打开其他库,因此我担心它可能是该库特有的.我使用了ldd,并且满足了库的所有依赖项.

This is a C++ program loading a C++ library. Otherwhere in the same program I use the same command to open other libraries without a problem, thus I fear it might be something specific to this library. I've used ldd and all those dependencies of the library are met.

推荐答案

我偶然发现了一些类似的作品:

I stumbled across something that kind of works:

export LD_DEBUG=all

然后继续筛选极端数量的输出.在这种情况下,我发现了查找错误",并且其中一个符号无法解析.我不确定为什么,但这可能与这个问题无关.

And then proceed to sift throught the extreme mass of output. In this case I found a "lookup error" and one of the symbols could not be resolved. I'm not sure why, but that is perhaps not relevant to this question.

这篇关于如果lt_dlopen失败,如何获取更多信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆