I have added libxml2 to my Xcode 4 project following this guide.
But it's not working. Xcode gives me error saying it no such libxml2 directory. What am I doing wrong? Here's the screenshots of the target settings of my project:
Thanks.
I have added libxml2 to my Xcode 4 project following this guide.
But it's not working. Xcode gives me error saying it no such libxml2 directory. What am I doing wrong? Here's the screenshots of the target settings of my project:
Thanks.
#include <libxml/HTMLparser.h>
and you're offfor better explanation see to this answer https://stackoverflow.com/a/3429301/149663
Do the following steps,
Thats all.
In "Other flags" add -lxml2 And also change the Header to ${SDKROOT}/usr/include/libxml2
You need to change Always Search User Paths
to YES also.
That with "${SDK_DIR}/usr/include/libxml2" on your User header search paths
should work.
${SDKROOT}/usr/include/libxml2