开发者

Error adding libxml2 to project

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.

Error adding libxml2 to project

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜