免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1648 | 回复: 0

[C] 编译gd 2.0.35时遇类型冲突错误 [复制链接]

论坛徽章:
0
发表于 2013-01-05 14:27 |显示全部楼层
本帖最后由 qweiu 于 2013-01-05 14:47 编辑

In file included from C:/MinGW/msys/1.0/local/libjpeg/include/jpeglib.h:26:0,
                 from gd_jpeg.c:47:
C:/MinGW/msys/1.0/local/libjpeg/include/jmorecfg.h:162:14: 错误:与‘INT32’类型冲突
在c:/Mingw/include/basestd.h中
typedef int INT32, *PINT32;
而在libjpeg/jmorecfg.h中
typedef long INT32;

c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/basetsd.h:54:13: 附注:‘INT32’的上一个声明在此
In file included from C:/MinGW/msys/1.0/local/libjpeg/include/jpeglib.h:26:0,
                 from gd_jpeg.c:47:
C:/MinGW/msys/1.0/local/libjpeg/include/jmorecfg.h:228:13: 错误:与‘boolean’类型冲突

在c:/Mingw/include/rpcndr.h中
typedef unsigned char boolean;
而在libjpeg/jmorecfg.h中
typedef int boolean;

我的系统是win7 64位

请问大神该如何解决 ?

好像不能修改libjpeg/jmorecfg.h中的声明,不然会影响结构体的大小。
会报这个错
JPEG parameter struct mismatch: library thinks width size is 472, caller expects 430"
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP