[Fwd: Re: [xml] xmlTextReaderConstName - undefined reference]

Dave Feinleib said:
I am new to using xmlib2. I am trying to compile the sample
reader1.c from xmlsoft.org.

I get the following error:

/tmp/ccgAFllk.o(.text+0xd): In function 'processNode':
: undefined reference to 'xmlTextReaderConstName'

I've tried this with both libxml2 2.5.4 and 2.5.11 and get the
same error.

My compile line looks like this:

gcc 'xml2-config --cflags --libs' -o reader1 reader1.c

Any suggestions?


The program is using some features which were added in version 2.6.x
of the library.  Please update your libxml2 to the latest version
(2.6.5) and try again.


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