neviem si rady s nasledujpcou chybou: 'xmlReadFile' was not declared in this scope
hlavičky mám includnuté, definícia tej funkcie je v nich napriek tomu to hádže chybu..
nejaký hint?...
Kód: Vybrať všetko
#include <libxml/parser.h>
#include <libxml/tree.h>
static void parse_xml(const char *filename, xmlDocPtr *doc) {
doc = xmlReadFile(filename, NULL, 0); // <-- tu je tá chyba !!!
if (doc == NULL) {
fprintf(stderr, "Failed to parse %s\n", filename);
return;
}
return;
}