[ROOT] Pb with TFile

From: Sebastien Greder (greder@in2p3.fr)
Date: Wed Apr 10 2002 - 18:40:20 MEST


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