[Gate-users] Gate v6 compiling problem : undefined reference
Didier Benoit
benoit at imnc.in2p3.fr
Wed Oct 5 11:41:08 CEST 2011
Hi Dounia,
Do you have some errors during the compilation?
Kind regards,
Didier
On Oct 5, 2011, at 11:01 AM, Ghania Taleb wrote:
> Dear Gaters,
>
> I am trying to install Gatev6 on an Ubuntu 11.04 64 bits machine (gcc 4.5 root 5.30 ). First everything was working fine (benchmarks) then I added lmfv3,0 and ecat7 libraries and reinstalled root and compiling gives me this :
>
>
> Compiling GateVSourceVoxelReaderMessenger.cc ...
> Compiling GateVSourceVoxelTranslator.cc ...
> source/physics finished
> Creating shared library tmp/Linux-g++/Gate/libGate.so ...
> Creating/replacing object files in ./tmp/Linux-g++/Gate/libGate.a ...
> ar: creating ./tmp/Linux-g++/Gate/libGate.a
> Compiling Gate.cc ...
> In file included from ./source/digits_hits/include/GateUserActions.hh:40:0,
> from Gate.cc:17:
> /home/florian/gate/geant4.9.4.p02/source/tracking/include/G4VTrajectory.hh:86:17: warning: ‘virtual void G4VTrajectory::ShowTrajectory(std::ostream&) const’ was hidden
> ./source/digits_hits/include/GateTrajectory.hh:75:17: warning: by ‘virtual void GateTrajectory::ShowTrajectory() const’
> Using global libraries ...
> Linking Gate
> ./tmp/Linux-g++/Gate/exe/Gate.o: In function `main':
> Gate.cc:(.text+0x2fb4): undefined reference to `GateUserActions::GateUserActions(GateRunManager*, GateRecorderBase*)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateVImageActor::GateVImageActor(G4String, int)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateVImageActor::GetIndexFromStepPosition(GateVVolume const*, G4Step const*)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateVDistributionArray::Clear()'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateTrack::SetParticleName(G4String)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateTrack::GetVertexPosition()'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateVDistributionArray::MaxY() const'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateUserActions::EnableTimeStudyForSteps(G4String)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateTrajectoryNavigator::GateTrajectoryNavigator()'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateToSinoAccel::GateToSinoAccel(G4String const&, GateOutputMgr*, GateVSystem*, DigiMode)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateTrack::GetMomentum()'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateVDistribution::GateVDistribution(G4String const&)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateTrajectoryNavigator::FindPhotonID(int)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateVImageActor::SetResolution(CLHEP::Hep3Vector)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateVImageActor::UserSteppingAction(GateVVolume const*, G4Step const*)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateTrack::GetParentID()'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateToInterfile::GateToInterfile(G4String const&, GateOutputMgr*, GateSPECTHeadSystem*, DigiMode)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateVDistributionArray::InsertPoint(double)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateUserActions::PreUserTrackingAction(G4Track const*)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateUserActions::EnableTimeStudy(G4String)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateTrack::GetLocalTime()'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateToProjectionSet::GateToProjectionSet(G4String const&, GateOutputMgr*, GateVSystem*, DigiMode)'const'
> .
> .
> .
> .
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateTrack::~GateTrack()'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateTrack::SetRunID(int)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateVImageActor::PostUserTrackingAction(GateVVolume const*, G4Track const*)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateTrack::GetEventID()'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateTrajectoryNavigator::SetTrajectoryContainer(G4TrajectoryContainer*)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateVDistributionArray::~GateVDistributionArray()'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateTrack::GateTrack(GateTrack&)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateVDistribution::~GateVDistribution()'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateTrack::GetVertexVolumeName()'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateTrajectoryNavigator::FindSourcePosition()'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateToRoot::GetCurrentTracksData()'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `ComptonRayleighData::ComptonRayleighData()'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateVActor::Save()'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `typeinfo for GateVOutputModule'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateVDistributionArray::Value(double) const'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateTrack::GetMomentumDirection()'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `typeinfo for GateVImageActor'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateTrack::SetEventID(int)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateToRoot::OpenTracksFile()'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateToRoot::GateToRoot(G4String const&, GateOutputMgr*, DigiMode)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateVActor::GateVActor(G4String, int)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `typeinfo for GateVDigiMakerModule'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `ComptonRayleighData::ComptonRayleighData(ComptonRayleighData&)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateUserActions::EndOfEventAction(G4Event const*)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateTrajectoryNavigator::FindPrimaryID(int)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateUpholder::GateUpholder(GatePulseProcessorChain*, G4String const&, double)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `typeinfo for GateToProjectionSet'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateVActor::SetSaveFilename(G4String)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateVActor::~GateVActor()'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateUserActions::PostUserTrackingAction(G4Track const*)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateVDigiMakerModule::~GateVDigiMakerModule()'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateVActor::AttachToVolume(G4String)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateToRoot::GetPHData(ComptonRayleighData&)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to `GateTrack::GetTrackID()'
> collect2: ld returned 1 exit status
> make: *** [bin/Linux-g++/Gate] Error 1
>
>
> I have seen that other users faced the same problem but did not get any answer.
> Thank you for ANY help.
> Cheers.
> Dounia Taleb.
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
-------------------------------------------------------------------------------------------
Didier BENOIT, GATE Engineer
Imagerie et Modélisation en Neurobiologie et Cancérologie (IMNC)
IMNC – UMR 8165 CNRS – Université Paris 7 – Université Paris 11
Campus d’Orsay
Bâtiment 440
91406 ORSAY Cedex
Tél : (33) 1 69 15 68 76
E-mail : benoit at imnc.in2p3.fr
http://www.imnc.in2p3.fr
-------------------------------------------------------------------------------------------
More information about the Gate-users
mailing list