After successfully installing the libxml2-2.6.19 library on Linux Red Hat 8 (as the instructions in their associated README file), I tried to compile a file called XML_Parser.c which was using this library using the following:
gcc XML_Parser.c -o XML_Parser -libxml -libxml2 -Wno-deprecated
and I have the following includes and declarations in my program:
and I got the following error upon compilation (as if the library was not installed - although I made sure that it was):
XML_Parser.c:5:18: tree.h: No such file or directory
XML_Parser.c:6:20: parser.h: No such file or directory
XML_Parser.c:7:19: xpath.h: No such file or directory
XML_Parser.c:8:28: xpathInternals.h: No such file or directory
XML_Parser.c:15: parse error before "xpathCtx"
XML_Parser.c:15: warning: data definition has no type or storage class
XML_Parser.c:16: parse error before "doc"
XML_Parser.c:16: warning: data definition has no type or storage class
any help on successfully compiling my program??