I am getting this error:
/Users/AppleMacbook/Documents/Tab/Tab/../../../Downloads/GDataXMLNode.h:38:24: error: libxml/tree.h: No such file or directory
I have added these two properly:
/usr/include/libxml2
other linkers flags -lxml2
Still I am get开发者_JAVA百科ting an error saying that tree.h is not present. I opened that folder, it's there!
Could you please help me with this?
Do you need /usr/include/ instead or in addition? I notice it's looking for libxml/tree.h but you're including /usr/include/libxml2 ?
you need to specify an include path, in addition to a linker path -I/usr/include/libxml2/libxml
, just specify the path (/usr/include/libxml2/libxml
) in the build settings.
精彩评论