unable to use Libxml on iPhone
im trying to use libxml2.2 to parse an XML file in my iPhone app but I'm having problems. i keep getting errors like "error: libxml/tree.h: No such file or directory". after doing some searching on here and on the internet in general i found that you need to add "/usr/include/libxml2" to the Header Search Paths开发者_如何学Python. i have done this and i'm still having the same problem. anybody have any idea what is going on?
also the exact same code works just fine on a coworker's computer but not on mine.
Did you add "usr/include/libxml2"
or "/usr/include/libxml2"
(there's a forward slash at the beginning of the path)
Also don't forget to add -lxml2
to Other Linker Flags
精彩评论