开发者

libxml2 use for ipad

开发者 https://www.devze.com 2023-01-16 22:50 出处:网络
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:

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消