RE: my own class

From: Philippe Canal <pcanal_at_fnal.gov>
Date: Mon, 27 Jun 2005 13:11:43 -0500


Most likely the rootcint dictionary has not been generated. If you have a ClassDef in your class, you have to compile, link and load a dictionary generated by rootcint.

Cheers,
Philippe.

-----Original Message-----
From: owner-roottalk_at_pcroot.cern.ch [mailto:owner-roottalk_at_pcroot.cern.ch] On Behalf Of Pietro GOVONI
Sent: Monday, June 27, 2005 9:49 AM
To: roottalk
Cc: cms-sw-reconstruction_at_cern.ch
Subject: [ROOT] my own class

Dear ROOTers,

After writing a very simple class, inheriting from a TObject.h, I am trying to link it inside my CMS ORCA code. The compile process of the class is successfull, I cannot say the same for the test program, on the other hand:

The ORCA I am using is necessarly ORCA_8_8_0. Unfortunately, I am not able to say which version of ROOT is in use, since the doc page doesn't load.

Did anybody already meet this problem?

Thanks in advance for your kind help,

Pietro Govoni

Reading cached build data
Scanning src/ElectronPhoton/EgammaGsfTracks/test/BuildFile
>> Compiling /afs/cern.ch/user/g/govoni/scratch0/ORCA/ORCA_8_8_0/src/
ElectronPhoton/EgammaGsfTracks/test/pietroTracks.cpp
>> Building binary pietroTracks

/afs/cern.ch/user/g/govoni/scratch0/ORCA/ORCA_8_8_0/lib/ slc3_ia32_gcc323/libEgammaGsfTracks.so:
undefined reference to `ROOT::GenerateInitInstance(TRootCalibObj const*)'
/afs/cern.ch/user/g/govoni/scratch0/ORCA/ORCA_8_8_0/lib/ slc3_ia32_gcc323/libEgammaGsfTracks.so:
undefined reference to `TRootCalibObj::Class()' /afs/cern.ch/user/g/govoni/scratch0/ORCA/ORCA_8_8_0/lib/ slc3_ia32_gcc323/libEgammaGsfTracks.so:
undefined reference to `TRootCalibObj::ShowMembers(TMemberInspector&, char*)'
/afs/cern.ch/user/g/govoni/scratch0/ORCA/ORCA_8_8_0/lib/ slc3_ia32_gcc323/libEgammaGsfTracks.so:
undefined reference to `TRootCalibObj::Streamer(TBuffer&)' collect2: ld returned 1 exit status
gmake: *** [/afs/cern.ch/user/g/govoni/scratch0/ORCA/ORCA_8_8_0/tmp/ slc3_ia32_gcc323/src/ElectronPhoton/EgammaGsfTracks/test/pietroTracks/ pietroTracks]
Error 1
(FAILED BUILD) Received on Mon Jun 27 2005 - 20:12:37 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:09 MET