views:

65

answers:

1

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/Developer/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

A: 

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?

Shaggy Frog
It was a problem in the wrapper library using libxml.
Kristof