无忧启动论坛

标题: 2014-08-17版grub4dos编译环境是否有变化 [打印本页]

作者: jianliulin    时间: 2014-8-19 08:59
标题: 2014-08-17版grub4dos编译环境是否有变化
本帖最后由 jianliulin 于 2014-8-19 09:04 编辑

2014-08-17版的grub4dos用以前的方法编译后出现以下提示,而2014-08-13是能正常编译的。我的编译环境是,slitaz安装4.5x 的gcc

In file included from bios.c:22:0:
iso9660.h:62:16: error: redefinition of typedef ‘int8_t’
shared.h:452:22: note: previous declaration of ‘int8_t’ was here
iso9660.h:64:15: error: redefinition of typedef ‘int16_t’
shared.h:453:17: note: previous declaration of ‘int16_t’ was here
iso9660.h:66:15: error: redefinition of typedef ‘int32_t’
shared.h:454:15: note: previous declaration of ‘int32_t’ was here
make[2]: *** [pre_stage2_exec-bios.o] Error 1
make[2]: Leaving directory `/tmp/grub4dos-temp/stage2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/grub4dos-temp'
make: *** [all] Error 2

作者: zxw    时间: 2014-8-19 09:17
用g4d_dev编译没有问题
作者: 不点    时间: 2014-8-19 10:58
chenall 可以改一下,如果 Linux 的系统 .h 已经定义了某些类型,就不要重复定义了。或者为了明确起见,先将其 undef,然后再 define,就不会有问题了。


作者: chenall    时间: 2014-8-19 16:16
嗯,这个我会改一下,




欢迎光临 无忧启动论坛 (http://wuyou.net/) Powered by Discuz! X3.3