在 HP-UX 11.00 中,什么会导致应用程序报告来自 .sl 库的未定义符号 __shlinit?
我正在 HP-UX 11.00 中使用 aCC 构建 .sl 库。我能够构建它,然后也成功地将其链接到应用程序。
但是,当我执行 exe 时,它给出以下错误
/usr/lib/dld.sl: Unresolved Symbol: __shlinit(code) from mylib.sl
任何解决此问题的指针都会有所帮助
I am building a .sl library using aCC in HP-UX 11.00. I am able to build it and then link it to the application also successfully.
But, when I execute the exe, it gives the below error
/usr/lib/dld.sl: Unresolved Symbol: __shlinit(code) from mylib.sl
Any pointers towards resolving this problem will be helpful
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
mylib.sl 是你的库吗?
您的库是否可能在任何时候调用名为
shlinit()
的函数?如果不是更可能是您的代码或应用程序代码正在调用的另一个库函数,则继续调用shlinit()
。shlinit() 显然是在您尚未安装的另一个库中实现的,或者未安装在正确的位置或动态链接路径指向的位置。
您需要找到哪个库实现了该功能并确保它已正确安装。
快速谷歌搜索给出了以下可能有用的链接,但现在我必须去:
未解析的符号:shlload() 期间的 __shlinit
Is mylib.sl your library I take it?
Is your library perhaps calling a function called
shlinit()
at any point? If not more probably another library function that your code, or the application code, is calling then goes on to callshlinit()
.shlinit()
is obviously implemented in another library that you do not have installed or is not installed in the correct place or somewhere your dynamic link path points to.You need to find which library implements that function and ensure it is correctly installed.
A quick Google search gives the following link which may be useful, but now I have to go:
unresolved symbol: __shlinit during shlload()