我收到此錯誤:錯誤添加libxml2的項目
/Users/AppleMacbook/Documents/Tab/Tab/../../../Downloads/GDataXMLNode.h:38:24: error: libxml/tree.h: No such file or directory
我已經加入這兩個正確:
/usr/include/libxml2
other linkers flags -lxml2
不過我得到一個錯誤,指出tree.h中是不存在的。我打開了那個文件夾,它在那裏!
你能幫我解決嗎?
這是路徑。 'usr/include/libxml2/libxml/tree.h' – Legolas
我沒有在我面前的Xcode,但在項目設置有2個地方列出庫包括和用戶定義包括IIRC。嘗試在這兩個地方放置/ usr/include/libxml2 /,也許還要檢查「遞歸」選項。 – Nektarios
也http://stackoverflow.com/questions/1428847/libxml-tree-h-no-such-file-or-directory確切的重複? – Nektarios