I'm trying to use libxml2 to parse some XML files in C. To do this, after installing libxml2 developer package, I included this lines in my code.c file:
#include <libxml2/libxml/parser.h>
#include <libxml2/libxml/tree.h>
Ok, so far so good... But when I compile the code,
gcc ../src/code.c -o App
I got this message by gcc:
/usr/local/include/libxml2/libxml/parser.h:15:31: fatal error: libxml/xmlversion.h: No such file or directory
#include <libxml/xmlversion.h>
^
compilation terminated.
The parser.h file included in my code.c, isn´t finding your include path "libxml/xmlversion.h", and I got the error message.
I tried to compile passing the library path with the -I parameter, without success.
Please guys, how can I solve this?