XCode 4.5 - libxml2出错

时间:2012-09-21 12:14:50

标签: xcode libxml2

我有一个正常编译的应用程序,但是当我将我的XCode更新到4.5版时,它开始抱怨libxml2。

问题出在这一行:

typedef void *(LIBXML_ATTR_ALLOC_SIZE(1) XMLCALL *xmlMallocFunc)(size_t size);

错误:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk/usr/include/libxml2/libxml/xmlmemory.h:66:39: Expected parameter declarator
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk/usr/include/libxml2/libxml/xmlmemory.h:66:39: Expected ')'
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk/usr/include/libxml2/libxml/xmlmemory.h:66:50: Expected ')'
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk/usr/include/libxml2/libxml/xmlmemory.h:66:38: Function cannot return function type 'void *(size_t)'

是否有人面临同样的问题?

问候!

0 个答案:

没有答案