当前位置: 技术问答>linux和unix
关于动态库加载问题
来源: 互联网 发布时间:2017-05-02
本文导语: 今天在AIX上遇到一个动态库找不到的问题: rtld: 0712-001 Symbol __ct__12TimerManagerFv was referenced from module /com/tm/lib/libcore.so(), but a runtime definition of the symbol was not found. 在需要链接这个库的makefile里都加上了: -L/c...
今天在AIX上遇到一个动态库找不到的问题:
rtld: 0712-001 Symbol __ct__12TimerManagerFv was referenced from module /com/tm/lib/libcore.so(), but a runtime definition of the symbol was not found.
在需要链接这个库的makefile里都加上了:
-L/com/tm/lib/ -lcore
并且链接通过。ldd应用程序也显示:
/com/tm/lib/libcore.so
但是就是运行时提示上边的错误,请问大神这能是什么原因呢??
rtld: 0712-001 Symbol __ct__12TimerManagerFv was referenced from module /com/tm/lib/libcore.so(), but a runtime definition of the symbol was not found.
在需要链接这个库的makefile里都加上了:
-L/com/tm/lib/ -lcore
并且链接通过。ldd应用程序也显示:
/com/tm/lib/libcore.so
但是就是运行时提示上边的错误,请问大神这能是什么原因呢??
|
运行之前加上
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/com/tm/lib
设置动态库搜索路径
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/com/tm/lib
设置动态库搜索路径