Re: Symbol lookup error troubleshoot



In order to facilitate, here is the output of #ldd -r pdc.o command:

[root Labplan-39 pdc]# ldd -r pdc
        linux-gate.so.1 =>  (0xb7f5a000)
        libxml++-2.6.so.2 => /usr/lib/libxml++-2.6.so.2 (0xb7f2f000)
        libxml2.so.2 => /usr/lib/libxml2.so.2 (0x41f5f000)
        libglibmm-2.4.so.1 => /usr/lib/libglibmm-2.4.so.1 (0xb7edd000)
        libgobject-2.0.so.0 => /lib/libgobject-2.0.so.0 (0x419d7000)
        libglib-2.0.so.0 => /lib/libglib-2.0.so.0 (0x418db000)
        libsigc-2.0.so.0 => /usr/lib/libsigc-2.0.so.0 (0xb7ed7000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x41841000)
        liblxrt.so.1 => /usr/lib/liblxrt.so.1 (0xb7ec8000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x41a5f000)
        libm.so.6 => /lib/libm.so.6 (0x41816000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x41899000)
        libc.so.6 => /lib/libc.so.6 (0x416b4000)
        libdl.so.2 => /lib/libdl.so.2 (0x4180f000)
        libz.so.1 => /lib/libz.so.1 (0x4185c000)
        libgmodule-2.0.so.0 => /lib/libgmodule-2.0.so.0 (0x41dcf000)
        /lib/ld-linux.so.2 (0x41695000)
undefined symbol: _ZN5xmlpp15SchemaValidatorC1Ev        (./pdc)
undefined symbol: _ZN5xmlpp15SchemaValidator8validateEPKNS_8DocumentE   (./pdc)


Hope it helps!


Alexandre Furstenberger - Eng.
Laboratório de Planejamento de Sistemas de Energia Elétrica
Departamento de Engenharia Elétrica
UFSC - Campus Universitário
Trindade - Florianópolis


On Tue, May 12, 2009 at 8:39 AM, Alexandre Furstenberger <processor13 gmail com> wrote:
 Hello there!
  I recently installed
  libxml++2.6 2.26.0 and  done some programming with it. It does compile
  normally but when I run it, it gives the following runtime error:

  /usr/local/pdc/pdc: symbol lookup error: /usr/local/pdc/pdc: undefined
  symbol: _ZN5xmlpp15SchemaValidatorC1Ev

I've done some debugging and the program stops on this call:

xmlpp::SchemaValidator* validator = new xmlpp::SchemaValidator; 

I searched everywhere for someone who had the same problem and find
  nothing! Please is there anything that i am doing wrong with the
  library?

Thanks in advance!


Alexandre Furstenberger - Eng.
Laboratório de Planejamento de Sistemas de Energia Elétrica
Departamento de Engenharia Elétrica
UFSC - Campus Universitário
Trindade - Florianópolis



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