Re: [xml] undefined reference



On Mon, 23 Jun 2003, carlos cano wrote:

hi,
I am beginner programming C.
I installed the library libxml2 in my computer and compile it, but when used
this library in any program, for exemple the follow rutine, when i compile
occurs the error: undefined reference to xmlNewTextReaderFilename

xmlTextReaderPtr reader;
reader = xmlNewTextReaderFilename(filename);

Care to provide your compile and link line? Received error messages? Anything?

Sounds as though your not adding `-lxml2' to your link line (if your using GCC),
and thus getting `undefined referrence to ...' messages.

Elfyn

-- 
Elfyn McBratney
Systems Administrator
ABCtales.com / Ubertales.co.uk

Show us yer bulk: biteme is ubertales co uk




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