我不明白如何将 xmlXPathDistinct 用于 xmllib2
// xmlNodeSetPtr xmlXPathDistinct (xmlNodeSetPtr nodes)
xmlXPathObjectPtr result;
...
if(result) {
xmlNodeSetPtr nodeset = xmlXPathDistinct(result->nodesetval);
--> warning: initialization makes pointer from integer without a cast
有人可以给我一个例子吗?
里卡多
编辑:gcc -o test2 test2.c -L/usr/local/lib xml2-config --cflags --libs
-lpthread -m64
Linux mymachine 2.6.32-358.23.2.el6.x86_64 #1 SMP 2013 年 10 月 16 日星期三 18:37:12 UTC x86_64 x86_64 x86_64 GNU/Linux