I have been trying to parse an xml document by using libxml2, and I am using Dev c++ for compilation. I couldn't figure out how to utilize libxml2/parser.h? I am getting the error
no such file or directory
(I am using windows)
I have been trying to parse an xml document by using libxml2, and I am using Dev c++ for compilation. I couldn't figure out how to utilize libxml2/parser.h? I am getting the error
no such file or directory
(I am using windows)
The libxml2 bundle normally is not installed into a standard path (under unix f.e. /usr/include), so you have to tell the compiler/IDE where you installed the include and the library (f.e. /home/include). In modern IDEs this can be achieved just by dragging/dropping the library into the project. In other environments you have to adjust your makefile or you system (environment variable) to point the include-path to your libxml2-directorys include path (-I with gcc) and library path (-L). In your IDE you may have a option/project settings to do so.