Re: [xml] undefined symbol error with xmlNodeBufGetContent

When I do a ldd ./example, it gives me this response: => /usr/lib/ (0x40034000) => /usr/lib/ (0x4011f000) => /usr/lib/ (0x4012d000) => /usr/lib/ (0x4013a000) => /usr/lib/ (0x42000000)
 lib/ =? /lib/ (0x40000000)

 Is this an incorrect library? Which shared library do I want?  I apologize
 for my ignorance -  I am new to Linux, haven't used C in years, and have
 only dabbled in XML.

 I downloaded and installed libxml2-2.6.10 from the website, so that's what
 I'm trying to use on redhat linux.

 Thanks so much for your help!

|         |           Daniel Veillard |
|         |           <veillard redhat|
|         |           .com>           |
|         |                           |
|         |           11/01/2004 04:36|
|         |           PM              |
|         |           Please respond  |
|         |           to veillard     |
|         |                           |
  |        To:      katy bradley kodak com                                                                    
  |        cc:      xml gnome org                                                                             
  |        Subject: Re: [xml] undefined symbol error with xmlNodeBufGetContent                                

On Mon, Nov 01, 2004 at 01:54:25PM -0500, katy bradley kodak com wrote:
I am compiling the code using:  gcc -o example `xml2-config --cflags`
example.c `xml2-config --libs` and it compiles without any errors or
warnings. When I run the program, after the line
cur->xmlChildrenNode); I get the following error: ./example relocation
error: ./example undefined symbol: xmlNodeBufGetContent.

Am I missing a library I have to include? I thought that function was in

  I would bet ./example loads the wrong shared library. check with
ldd ./example which one is loaded (assuming being on Linux).


Daniel Veillard      | Red Hat Desktop team
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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