我可以在
Xcode(4.2)中构建我的项目以进行调试而不会出现问题,但是当我想构建它以进行发布(构建用于存档)时,我得到错误:“Typedef重新定义具有不同类型(unsigned int vs unsigned long)”.
有问题的代码是:
#ifdef _LZMA_UINT32_IS_ULONG typedef long Int32; typedef unsigned long UInt32; #else typedef int Int32; typedef unsigned int UInt32; <--error on this line #endif
你可以看到整个文件:
http://read.pudn.com/downloads166/sourcecode/zip/758136/C/Types.h__.htm
以前的定义是在CoreServices框架中的MacTypes.h中.
我有与Debug和Release相同的预处理器宏,我正在使用Apple的LLVM编译器3.0.当我尝试构建用于分析的项目时,会发生同样的错误.
知道为什么会这样吗?