Re: [xml] Trouble compiling a library





--On 12 July 2012 09:37:23 +0200 michael jerusalmi steria com wrote:

I use this command line to compile : gcc `xml2-config --cflags --libs` -o
librairie_xml librairie_xml.c

If your xml library is actually installed, you want to do:

#include <libxml/parser.h>
#include <libxml/tree.h>

not

#include "libxml/parser.h"
#include "libxml/tree.h"

Can I suggest you look at
http://www.xmlsoft.org/examples/index.html

and download and compile an example or two. Once you have those working,
start using your own code. Perhaps modify the examples a bit.

--
Alex Bligh



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]