在使用zlib时遇到的问题
来源:互联网 发布:购买域名-190数交所 编辑:程序博客网 时间:2024/05/14 17:34
在编译自己的test.c的时候出现:
zlib.h:86: error: expected specifier-qualifier-list before ‘z_const’
zlib.h:1332: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Z_ARG’
zlib.h:1656: error: expected specifier-qualifier-list before ‘z_off64_t’
zlib.h:1731: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
发现原因是头文件zlib.h中语法结构不对,# define 等格式错误;
错误二:
/tmp/ccMDkMYc.o: In function `main':
test.c:(.text+0x5a): undefined reference to `compress'
test.c:(.text+0xf7): undefined reference to `uncompress'
collect2: ld returned 1 exit status
make: *** [test] Error 1
错误原因,没有正确连接静态链接库。在编译语句中需要加入-lz。
- 在使用zlib时遇到的问题
- 在使用AWS时遇到的问题
- 解決 64 CPU 位元 compiler时zlib 出现(php安装过程中遇到的问题)
- 编译zlib遇到的问题 没有找到match686.obj
- open-vmdk在linux编译时候 zlib.h的头文件问题 以及在windows使用zlib的资料查找记录
- 如何解决在使用MS产品时遇到的问题
- 今天在使用MQ时遇到的CCSID问题
- 在使用struts2的freemarker开发portlet时遇到问题
- 在使用libxvidcore.lib 时遇到的问题
- 在使用jquery.twbsPagination分页时遇到的问题
- 在使用supervisord 管理tomcat时遇到的小问题
- rync工具在ssh下使用时遇到的问题
- 在使用CommonComplexAdapter时遇到的类型无法转换问题
- 项目在使用easyui时遇到的问题
- hadoop在使用PathFilter时遇到的问题
- 在bash使用read时遇到的问题
- 我在使用 NPOI 时遇到的问题
- 我在使用 NPOI 时遇到的问题
- Android源码下载方法详解
- 自动生成ToString、equals、hashcode、compareTo方法的commons4e插件和commonclipse插件,
- 关于LayoutInflater inflate的第3个参数
- C++开源矩阵计算工具——Eigen的简单用法(二)
- android NDK 编译的一些问题
- 在使用zlib时遇到的问题
- SelectSingleNode方法中的xpath用法
- 标题:如何在dropDownList中实现既能输入一个新值,又能实现下拉选
- jQuery动画、图片切换 KinSlideshow jQuery 多样式图片幻灯片插件
- flex ArrayCollection去掉重复项
- Md5加密
- Creating Custom FFmpeg IO-Context
- xcode修改项目名
- /bin/sh^M:损坏的解释器: 没有那个文件或目录