Symbols not seen for second library

From: Damir Buskulic (buskulic@lapp.in2p3.fr)
Date: Thu Mar 23 2000 - 12:38:21 MET


Hi,

I'm building two shared libraries from plain C source as Masa explained
me a few months ago. That is, I pretend that everything is C++ and use
plain cint to build the dictionnary. Using rootcint does not work if I
want to build automatically the LinkDef.h file (it generates an empty
stub header/file).
Now, I build an executable that links statically these two libraries.
The problem is that only the symbols from the first linked library are
visible, i.e. can be used in the interpreter. As I understand it, the
function G__cpp_setup is called for the first one but not for the
second. If I swap the order of the libs on building the executable, the
symbols of the lib that was the second and is now the first are visible,
while the others are not anymore.

Why is it so ? Is there a way to cure it ?

Cheers

Damir
-- 
=====================================================================
| Damir Buskulic                  | Universite de Savoie/LAPP       |
|                                 | Chemin de Bellevue, B.P. 110    |
| Tel : +33 (0)450091600          | F-74941 Annecy-le-Vieux Cedex   |
| e-mail: buskulic@lapp.in2p3.fr  | FRANCE                          |
=====================================================================
mailto:buskulic@lapp.in2p3.fr



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