"symbol lookup error"问题解决
来源:互联网 发布:cn域名备案和com 编辑:程序博客网 时间:2024/05/16 16:12
http://www.linuxquestions.org/questions/slackware-14/symbol-lookup-error-usr-lib-libgtk-x11-2-0-so-0-undefined-symbol-434399/
今天调试一段程序,运行时提示:
“./test: symbol lookup error: ./test: undefined symbol: ……”
费了半天劲,终于发现问题的原因:
test程序使用的动态库存放的位置和Makefile里编译的动态库存位置不同。
定位过程如下:
#ldd test
……
libttt.so => /mylib/lib/libttt.so
……
而Makefile中 LIBS=../../lib/libttt.so,和上面的路径不同。
解决方法如下:
将make生成的libttt.so拷贝到/mylib/lib/libttt.so,修改即生效。
在使用linux共享库的时候,有很多情况是动态库的函数找不到,这就要使用ldd命令,看动态库是否加载正确。
- "symbol lookup error"问题解决
- "symbol lookup error"问题解决
- symbol lookup error - undefined symbol
- symbol lookup error: undefined symbol
- symbol lookup error: undefined symbol
- symbol lookup error"问题
- symbol lookup error错误
- symbol lookup error
- c++ runtime symbol lookup error
- c++ runtime "symbol lookup error"
- git: symbol lookup error: git:undefine symbol ...
- symbol lookup error,undefined symbol: pthread_create
- symbol lookup error:undefined symbol: libssh2_init
- runtime:symbol lookup error,:undefined symbol :stat
- psql error: psql: symbol lookup error: psql: undefined symbol: PQconnectdbParams
- jni运行错误 symbol lookup error
- ubuntu14.04 出现symbol lookup error
- symbol lookup error: /usr/bin/suricata: undefined symbol: htp_config_set_query_case_insensitive 解决方法
- sendmail发送邮件中文乱码问题
- Android 1.5 告别篇
- 业余研究--人工智能
- 值得纪念
- JavaScript的Decode Code和IP验证
- "symbol lookup error"问题解决
- 新的一天
- 怎样学习vc
- Apache Commons BeanUtils包学习(2)-beanutils.PropertyUtils, beanutils.DynaBean
- Silverlight+WCF 新手实例 象棋 棋子(三)
- STDIN
- Windows 2003超级终端
- ASEconvert函数中的日期样式
- 四大排序函数