test32.c:(.text+0x117): undefined reference to `inflateInit2_'

test32.c:(.text+0x177): undefined reference to `inflate'

test32.c:(.text+0x1e2): undefined reference to `inflateEnd'

collect2: ld returned 1 exit status

今天再次运行以前的libnids的http协议还原程序,结果出现inflateInit2没有定义的错误。解决方法是:加上-lz。

gcc test32.c -o test32 -lnet -lpcap -lnids -lz

转载于:https://blog.51cto.com/yuzwei/1731075

undefined reference to `inflateInit2_'相关推荐

  1. undefined reference to 'pthread_create'问题解决(转)

    undefined reference to 'pthread_create' undefined reference to 'pthread_join' 问题原因:     pthread 库不是 ...

  2. undefined reference to `libiconv_open 无法编译PHP libiconv

    原文:http://hi.baidu.com/ostech/blog/item/a63f9b0dabed1ae7ab6457d0.html ./configure --with-mysql=/back ...

  3. 【Qt】error: undefined reference to `vtable for MainWindow‘

    1.问题描述 在写一个demo时,想尽量简单,就把MainWindow类的定义和实现都写在main.cpp中,结果编译时报错: main.cpp:-1: error: undefined refere ...

  4. 【Qt】报错error: undefined reference to `vtable for的解决方法

    1.问题描述 编译Qt程序时,在某个类构造函数定义处报错: error: undefined reference to `vtable for 2.原因分析 导致错误信息的原因是:子类没有实现父类的纯 ...

  5. 【ffmpeg】编译时报错:error: undefined reference to `av...

    1.问题描述 昨天使用ffmpeg库编译demo一切正常,今天再次链接ffmpeg库时报了一堆错误: error: undefined reference to `av_frame_alloc()' ...

  6. undefined reference to android log print,undefined reference to '__android_log_print'

    场景:undefined reference to `android_log_print' undefined reference to `__android_log_print' 原因:没有加入支持 ...

  7. undefined reference to 'WinMain@16' 的四种情况

    undefined reference to 'WinMain@16' 意思为提示找不到 WinMain 函数,WinMain是windows程序的入口函数,有几种可能: int main() 写成了 ...

  8. 报错解决:undefined reference to `snappy::MaxCompressedLength(unsigned long)'

    下午在编译phxpaxos的样例时报错了,报错如下: g++ echo_sm.o echo_server.o main.o -o phxecho -L/home/zhang/phxpaxos/.lib ...

  9. 重新编译php又出错了。undefined reference to `php_xx

    2019独角兽企业重金招聘Python工程师标准>>> main/rfc1867.lo(.text+0x1c): In function `php_mb_flush_gpc_vari ...

最新文章

  1. 免费学python的网站-python自学网站
  2. 动态网页中隐藏url参数传递的方法
  3. 《研磨设计模式》chap25 访问者模式Visitor(2)模式应用到场景
  4. C++求二叉树的最大高度差
  5. Linux查看设备 eth,lspci grep Eth,查看Linux下的各种硬件设备是否识别或存在之用
  6. 23种设计模式的优点与缺点概况
  7. 交换机VLAN、 TRUNK 、VTP 配置
  8. Qt signal slot 实现机制
  9. 设计模式-策略模式(Strategy)
  10. 最强android平板,最强安卓平板!华为MatePad Pro来了:搭载麒麟990
  11. 大连交通大学计算机网络作业,计算机网络题库(大连交通大学)chapter4
  12. 机器学习基石PLA相关
  13. Help Me Escape
  14. MFC对COM接口编写的支持分析
  15. 001----Mysql隔离级别
  16. MVC简介——一篇非常简单易懂的介绍
  17. 苹果手机可以投影到墙上吗_怎么将手机上的投影到电视上或墙上?
  18. 利用NEO与Unity制作游戏(第2部分)
  19. 使用Html.fromHtml()怎么加载Html中的图片
  20. android Manifest介绍

热门文章

  1. 20141113--SQL 事务
  2. Linux中buff-cache占用过高解决方案
  3. luogu P1462 通往奥格瑞玛的道路
  4. 清华大学人工智能研究院知识中心成立仪式隆重举行,发布知识计算开放平台...
  5. Mycat读写分离笔记Windows
  6. [转]supervisor 安装、配置、常用命令
  7. [开源 .NET 跨平台 Crawler 数据采集 爬虫框架: DotnetSpider] [四] JSON数据解析
  8. swith 好久不用都忘记了
  9. 国内互联网企业奇妙招数
  10. Cocos2d之Ref类与内存管理使用详解