mac os x 10.6.7,MacOSX10.6.sdk环境下编译toolchain

hslinux 2011-07-15 08:32:03
有没有人在mac os x 10.6.7或8,MacOSX10.6.sdk环境下编译通过toolchain?

下载了一个代码,编译了一把,编译不通过:

In file included from ../../../odcctools/include/libkern/OSByteOrder.h:70,
from ../../../odcctools/include/mach/ndr.h:94,
from ../../../odcctools/include/mach/clock_priv.h:7,
from ../../../odcctools/include/mach/mach_interface.h:37,
from ../../../odcctools/include/mach/mach.h:62,
from ../../../odcctools/libstuff/execute.c:25:
../../../odcctools/include/libkern/machine/OSByteOrder.h:45: error: redefinition of
‘_OSSwapInt16’
/usr/include/libkern/i386/_OSByteOrder.h:49: error: previous definition of ‘_OSSwapInt16’ was
here
../../../odcctools/include/libkern/machine/OSByteOrder.h:54: error: redefinition of
‘_OSSwapInt32’
/usr/include/libkern/i386/_OSByteOrder.h:58: error: previous definition of ‘_OSSwapInt32’ was
here
../../../odcctools/include/libkern/machine/OSByteOrder.h:63: error: redefinition of
‘_OSSwapInt64’
/usr/include/libkern/i386/_OSByteOrder.h:69: error: previous definition of ‘_OSSwapInt64’ was
here
make[1]: *** [execute.o] Error 1
make: *** [libstuff] Error 2


按照网上的修改:

export INCPRIVEXT="-isysroot /Developer/SDKs/MacOSX10.6.sdk"

再编译,错误依然。。。。。。
...全文
190 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
ArthurChen 2011-07-22
  • 打赏
  • 举报
回复
不知道为什么用toolchina,

编译不过就发帖等人回答
如果这样来调试程序,程序员一年都不用写几句代码
tmy13 2011-07-21
  • 打赏
  • 举报
回复
能把你下代码的地址贴出来吗?光看这个很难解决问题
hslinux 2011-07-18
  • 打赏
  • 举报
回复
Proteas 2011-07-15
  • 打赏
  • 举报
回复

出现了重定义,
估计系统中有相同的文件,
toolchain 中也含有。
处理下包含路径。

29,027

社区成员

发帖
与我相关
我的任务
社区描述
主要讨论与iOS相关的软件和技术
社区管理员
  • iOS
  • 大熊猫侯佩
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧