When I use libxml2 in my ipad project (i use the dylib and add the header flags correctly) it doesn't build and gives the error:
/Xcode4/Platforms/iPhoneSimulator.platform/Dev开发者_Python百科eloper/SDKs/iPhoneSimulator3.2.sdk/usr/include/libxml2/libxml/xmlversion.h:24
Expected '=','','.','asm' or 'atrribute' before 'void'.
line 23-25 of xmlversion.h is
#ifndef LIBXML2_COMPILING_MSCCDEF
XMLPUBFUN void XMLCALL xmlCheckVersion(int version);
#endif /* LIBXML2_COMPILING_MSCCDEF */
What am i doing wrong ?
Thanks in advance! Kristof
I dug up an older project that compiles directly against libxml2.
Do you have "/usr/include/libxml2" in your Header Search Paths
project build setting?
精彩评论