首页 > 其他分享 >undefined reference to `__isoc99_sscanf'

undefined reference to `__isoc99_sscanf'

时间:2023-01-20 23:32:15浏览次数:49  
标签:__ sscanf undefined glibc library 2.7 isoc99


参考文章:​​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


to find which library refers to that symbol.



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,在我们的系统里面重新编译,然后拿来使用即可。











标签:__,sscanf,undefined,glibc,library,2.7,isoc99
From: https://blog.51cto.com/softo/6020854

相关文章

  • Vlc播放rtsp视频
    Vlc播放rtsp视频,网上的例子不少,我看后觉得有点不足的地方,就是他们没有设置播放rtsp视频时的参数,参数设置对播放网络视频是很重要的,如果设置不当,或不设置,可能你的程序就播放......
  • open-vm-tools-dkms : 依赖: open-vm-tools (>= 2:9.4.0-1280544-5ubuntu3) 但是它将
    参考文章:​​http://forum.ubuntu.org.cn/viewtopic.php?t=458707​​我的环境:XXX@Kylin:~/桌面$cat/proc/versionLinuxversion3.16.0-30-generic(buildd@phianna)(g......
  • socket端口数据转发
    ---------------------------------------------------------------------------先说下我的需求:因工作的需要,别的电脑在访问我的电脑的80端口时,我希望其访问的其实是某台设......
  • ubuntu安装vlc
    参考官网:​​http://www.videolan.org/vlc/download-ubuntu.html​​看看官网的说明:VLCmediaplayerfor Ubuntu“SaucySalamander”Ubuntu13.04 “RaringRingtail......
  • 2023牛客寒假算法基础集训营3
    题目链接:https://ac.nowcoder.com/acm/contest/46811#question牛客题目讲解:https://www.bilibili.com/video/BV13D4y1p7Sg/?spm_id_from=333.999.0.0&vd_source=affdde9b0......
  • 小计,纪念初恋
    黑白回首,却见她正在灯下弄影近在咫尺,有如天涯一个人,是孤单两个人,更寂寞蜷缩在空旷的房间一隅我想望着北方的冬天我喜欢在冬天凛冽的寒风中,迎风而立突兀的枝头,一只......
  • 无监督学习之聚类
    点头出品,必属精品!!!嘿嘿嘿( ̄y▽, ̄)╭![image]嗯~~~~,还是先从聚类到底是什么开始吧。一、聚类概述有关聚类的思考数据挖掘导论中提到过:聚类可以看做一种分类,它用类标号......
  • 超详细的ERP流程剖析
    1概览ERP是什么意思,大家有研究过吗?ERP的全称是EnterpriseResourcePlanning,翻译成中文是企业资源计划。那企业的资源都包含哪些方面?然后又该对哪些环节进行计划呢?......
  • 【最新】Delphi XE7 绿色版下载,亲测可用!
    最后更新时间2017-12-05.本文整理自2ccc盒子iny的帖子→链接到原贴破解→链接一、绿色版介绍绿色版除了不包含FastReport(RADStudio自带的FastReport为精简......
  • D 宿命之间的对决【2023牛客寒假算法基础集训营3】
    D 宿命之间的对决原题链接题意现在给定一个正整数n,小红和小紫轮流操作,每次取n的一个因子x,使得n减去x。谁先将n减到0谁输。小红先手操作,她想知道在双方足够聪明的情况......