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

iOS 码拜 9年前 (2015-05-07) 597次浏览 0个评论
 

有没有人在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” 

再编译,错误依然。。。。。。

100分

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

能把你下代码的地址贴出来吗?光看这个很难解决问题
不知道为什么用toolchina,

编译不过就发帖等人回答
如果这样来调试程序,程序员一年都不用写几句代码


CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明mac os x 10.6.7,MacOSX10.6.sdk环境下编译toolchain
喜欢 (0)
[1034331897@qq.com]
分享 (0)

文章评论已关闭!