RE:Re: Symbols not seen for second library

From: Masaharu Goto (MXJ02154@nifty.ne.jp)
Date: Sat Mar 25 2000 - 04:35:33 MET


Hello Damir,

For cint, implicitly linked shared library behaves the same as 
static library. In order to initialize the dictionary, you have to
link it explicitly from Cint.  There are several alternatives.

 1) Link them explicitly by G__loadfile() API
 2) Make only one dictionary
 3) Create a class which calls G__cpp_setup() function in constructor and
    instanciate a static object of it.

1) and 2) are supported as standard in cint. 3) is a kind of tweaking.
Choose 3) only if this is really important for you.

Thank you
Masaharu Goto

>
>Hello Masa,
>
>Indeed, both libraries are shared libraries. I just link them with 
>
>g++ -shared ... bla bla... -L/path_to_shared_libs -lLib1 -lLib2 ... -o
>vega
>
>where lib1 and lib2 are shared libraries that are build with cint
>I just do not load them dynamically. If the solution is to make only one
>dictionary, well, I'll bear with that.
>
>Cheers
>
>Damir
>



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:22 MET