热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

怎样解决这两个警告?

usrlibgcci486-linux-gnu4.3.3..liblibavformat.a(udp.o):Infunction`udp_ipv6_resol

/usr/lib/gcc/i486-linux-gnu/4.3.3/../../../../lib/libavformat.a(udp.o): In function `udp_ipv6_resolve_host':
/home/riverdream/桌面/ffmpeg/libavformat/udp.c:160: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i486-linux-gnu/4.3.3/../../../../lib/libavformat.a(os_support.o): In function `resolve_host':
/home/riverdream/桌面/ffmpeg/libavformat/os_support.c:69: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking

这个警告是什么,怎么解决?谢谢各位大牛!

15 个解决方案

#1


我不是大牛 所以我不会

#2


引用 1 楼 steptodream 的回复:
我不是大牛 所以我不会

看到你的头像让我想起一句话,“干掉熊猫,我就是国宝!”,哈哈!看样子你是大牛!

#3


Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
字面意思:
在静态链接的应用程序中使用“gethostbyname” 运行时需要
glibc版本的共享库来链接

别的不会了 
- -

#4


引用 3 楼 boborookie 的回复:
Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
字面意思:
在静态链接的应用程序中使用“gethostbyname” 运行时需要
glibc版本的共享库来链接

别的不会了
- -

貌似没包含相关库 - -我猜的

#5


你的这个工程好像是使用了 静态库链接了 libc.so

警告的意思是即使使用了静态库链接,但也会依赖库 libc.so

大概是这个意思吧

#6


引用 2 楼 ct200901 的回复:
引用 1 楼 steptodream 的回复:
我不是大牛 所以我不会

看到你的头像让我想起一句话,“干掉熊猫,我就是国宝!”,哈哈!看样子你是大牛!

我正在通往大牛的路上

#7


引用 5 楼 rzsheng 的回复:
你的这个工程好像是使用了 静态库链接了 libc.so

 警告的意思是即使使用了静态库链接,但也会依赖库 libc.so

 大概是这个意思吧

我不知道怎么引用了那个静态连接阿,这个警告挺长,不想看到他,有什么办法解决吗?

#8


谁可以帮帮呢?

#9


杂的个问题阿,为什么没有人理我?这两个警告不处理存在危险吗?

#10


这些warning怎么来的?

#11


引用 10 楼 sourceid 的回复:
这些warning怎么来的?

什么叫怎么来的?就是在编译连接的时候提示的,具体点的华就是在连接的时候来的!

#12


http://www.google.com/search?hl=en&source=hp&q=Using+%27gethostbyname%27+in+statically+linked+applications+requires+at+runtime+the+shared+libraries+from+the+glibc+version+used+for+linking&aq=f&oq=&aqi=

#13


引用 12 楼 ericzhangali 的回复:
http://www.google.com/search?hl=en&source=hp&q=Using+%27gethostbyname%27+in+statically+linked+applications+requires+at+runtime+the+shared+libraries+from+the+glibc+version+used+for+linking&aq=f&oq=&aqi?-

没有发现重点~~~

#14


没有人回答了吗??

#15


大概意思是,你引用的静态库并没有静态连接 getaddrinfo 这个函数,
运行时,会要求 libc.so 这个库。

不知道是否可以在你的连接命令行中加入 libc 的静态库。

推荐阅读
author-avatar
爱的话心情_196
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有