undefined reference to `__isoc99_sscanf'
来源:互联网 发布:大富豪5.2全套源码 编辑:程序博客网 时间:2024/06/06 16:34
参考文章:http://www.linuxquestions.org/questions/programming-9/undefined-reference-to-%60__isoc99_sscanf%27-873058/
原文关键内容:
You have glibc version prior to 2.7 installed, and are using libraries (ffmpeg?) which were compiled against glibc 2.7. The __isoc99_sscanf was added to glibc in version 2.7.
You'll need to check which static library file (*.a) refers to that symbol, and recompile it. You can use command
Code:
objdump -t path-to-library.a | grep -e __isoc99_sscanf
Alternatively, you can upgrade your c library to version 2.7 or newer. If you're using Debian or Ubuntu, upgrading package libc6-dev to at least 2.7 should be enough.
If the error message referred to an unversioned symbol (i.e. the error message did not refer to __isoc99_sscanf@@GLIBC...), then you could write a __isoc99_sscanf wrapper using stdargs and GNU sscanf (their differences being usually insignificant) and include that in the linking.
-------------------------------------------------------
错误:
undefined reference to `__isoc99_sscanf'
原因是我们的程序中使用的某个库,如xxx.a, xxx.so是在高版本的glibc环境里面进行编译的。
有2种解决方法:
1. 升级我们的glibc到2.7版本
2. 找到xxx.a 或 xxx.so,在我们的系统里面重新编译,然后拿来使用即可。
0 0
- undefined reference to `__isoc99_sscanf'
- undefined reference to 'floor'/undefined reference to `&
- undefined reference to 'floor'/undefined reference to
- undefined undefined reference to `nfq_open'
- undefined reference to 'pthread_create'
- undefined reference to `_Unwind_Resume'
- undefined reference to `__ctype_b'
- undefined reference to rpl_malloc
- undefined reference to '__ctype_b'
- undefined reference to `__assert_fail'
- undefined reference to 'pthread_create'
- undefined reference to `__aeabi_unwind_cpp_pr0'
- undefined reference to `cvCreate2DHMM
- undefined reference to 'getfilecon'
- undefined reference to `__gxx_personality_v0'
- undefined reference to 'pthread_create'
- undefined reference to `sin'
- undefined reference to rpl_malloc
- Android 使用Face++ SDK进行人脸识别和年龄检测
- 162Find Peak Element
- ibatis删除N天前的数据
- NDK Android.mk手册
- Android文件图片上传的详细讲解(一)HTTP multipart/form-data 上传报文格式实现手机端上传GOOD
- undefined reference to `__isoc99_sscanf'
- C++刷题——2306: 字符串操作一(串)
- Android三款实用的自定义开关控件
- windows下安装nginx
- 第九周 项目一 复数类中的运算符重载(续)
- ]浅谈几种服务器端模型——多线程并发式(线程池)
- 写.wav文件的三个关键函数
- SQL Server 系统表 sysobjects 中 xtype 和 type 的区别
- PL/SQL美化规则文件详解