RE: undefined symbols

From: Fine, Valeri <fine_at_bnl.gov>
Date: Wed, 8 Oct 2008 16:59:13 -0400


>
> I'm trying to load a preexisting library into root, but I'm getting
> the following error:
>
> root [0] gSystem->Load("libDst");
> dlopen error: /home/findlay/src/croot/lib/libDst.so: undefined symbol:
> _ZNK9TDataBank5TDumpEPKc
> Load Error: Failed to load Dynamic link library
> /home/findlay/src/croot/lib/libDst.so
>
> I am unsure how to resolve this. The undefined symbol refers to
> another library in the same source tree. Do I need to add some
> compiler or linker flags, or manually account for all symbols used in
> the shared library somehow?

If the method belongs to "another library" then you should load that library first.

Try , Hope it helps

Best Regards

                         Valeri Fine


Brookhaven National Laboratory
Upton, NY 11973, USA
Phone: +1 631 344 7806
Fax: +1 631 344 4206
E-mail: fine_at_bnl.gov Received on Wed Oct 08 2008 - 22:59:30 CEST

This archive was generated by hypermail 2.2.0 : Fri Oct 10 2008 - 17:50:02 CEST