无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
查看: 3524|回复: 3
打印 上一主题 下一主题

2014-08-17版grub4dos编译环境是否有变化

[复制链接]
跳转到指定楼层
1#
发表于 2014-8-19 08:59:29 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 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
2#
发表于 2014-8-19 09:17:27 | 只看该作者
用g4d_dev编译没有问题
回复

使用道具 举报

3#
发表于 2014-8-19 10:58:40 | 只看该作者
chenall 可以改一下,如果 Linux 的系统 .h 已经定义了某些类型,就不要重复定义了。或者为了明确起见,先将其 undef,然后再 define,就不会有问题了。

回复

使用道具 举报

4#
发表于 2014-8-19 16:16:20 | 只看该作者
嗯,这个我会改一下,
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-9-22 07:35

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表