Charles Leggett writes:
>
> I just tried linking in a shared library to root, using the directions and
> files as described in the "Extending ROOT with Shared Libraries and an Example
> of Object I/O" tutorial #44. I'm able to make the library with no problems, but
> when I try to load it into root with "gSystem.Load("event.sl")", I get the
> error message:
>
> dlopen error: ./event.sl: undefined symbol: __tf7TObject
> Load Error: Dynamic link library ./event.sl can not load
> (int)(-1)
>
Charles: tell linker about ROOT libraries when linking `event.sl'.
When you're linking a shared library which you later on intend to load in
dynamically, make sure that all the external references therein are
resolved at link time - this is the way dynamic loader works.
- pasha
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:33 MET