RE: [ROOT] Pb with TFile

From: Philippe Canal (pcanal@fnal.gov)
Date: Wed Apr 10 2002 - 18:57:04 MEST


Hi Sebastien,

This could happen if you omitted to link against libCore.so
It could also happen if you are using different compiler to compile the
different parts or even sometimes when you are using different compiler options ....
To make a better diagnostic we would need, the link command line, the exact
version of ROOT you are using (i.e version, platform, compiler).

Cheers,
Philippe.

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Sebastien Greder
Sent: Wednesday, April 10, 2002 11:40 AM
To: roottalk@pcroot.cern.ch
Subject: [ROOT] Pb with TFile


Hello everybody,

I've got some troubles when using the MakeClass command.
In fact this command works well to create both Global.C and Global.h.

After this I include those files (.C and .h) in an more general program
and I wrote a little prog for compilation, output file creation and so on.

The problems occurs during the compilation , I get the following message : 

dlopen error: /home/sgreder/root/tmpprog/./Global_C.so: undefined symbol:
__5TFilePCcPCcT1i
Load Error: Failed to load Dynamic link library
/home/sgreder/root/tmpprog/./Global_C.so

followed by :
undefined reference to `TFile::TFile(char
const *, char const *, char const *, int)'

This message comes from the line :

f = new TFile("mujets_02_10_2002_02_12_2002_00.root");

in the Global.h file, if I comment this line it works nice.

The same problem (with ... new TFile ...) occurs in more simple examples I
wrote when a file calls another one which has such a kind of TFile
instantiation.

Could someone help me with this ??

Thanks in advance

seb.

P.S : it's not a const char * problem as it has already been put forward. 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:48 MET