Message: linking error after moving g4work folder... Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question linking error after moving g4work folder... 

Forum: Run Management
Date: 02 Jul, 2012
From: Clare Huang <Clare Huang>

Hi all,

due to disk space shortage, I had to move around the g4work folder to a different disk space. I realized that linking error might have occurred when compiling. I moved the bin, tmp, and the geant4 code folder back to my g4work directory. Prior to this directory move, I was able to compile the code correctly with no error. After the directory move, I ran into the following compiling error after the 'make' command...

=========================================================================

Making dependency for file VoxelizedHumanDose.cc ... Making dependency for file src/VHDStackingAction.cc ... Making dependency for file src/VHDSensitiveDetector.cc ... Making dependency for file src/VHDRunAction.cc ... Making dependency for file src/VHDPrimaryGeneratorAction.cc ... Making dependency for file src/VHDPhysicsList.cc ... Making dependency for file src/VHDPhantomZSliceHeader.cc ... Making dependency for file src/VHDPhantomParameterisationColour.cc ... Making dependency for file src/VHDNestedPhantomParameterisation.cc ... Making dependency for file src/VHDMuonPhysics.cc ... Making dependency for file src/VHDIonPhysics.cc ... Making dependency for file src/VHDHadronPhysics.cc ... Making dependency for file src/VHDGeneralPhysics.cc ... Making dependency for file src/VHDEventAction.cc ... Making dependency for file src/VHDEMPhysics.cc ... Making dependency for file src/VHDDetectorConstruction.cc ... Making dependency for file src/VHDAnalysis.cc ... Making dependency for file src/SensDetHit.cc ... Making dependency for file src/RegularVHDDetectorConstruction.cc ... Making dependency for file src/NestedParamVHDDetectorConstruction.cc ... Compiling NestedParamVHDDetectorConstruction.cc ... Compiling RegularVHDDetectorConstruction.cc ... Compiling SensDetHit.cc ... Compiling VHDAnalysis.cc ... Compiling VHDDetectorConstruction.cc ... src/VHDDetectorConstruction.cc: In member function ‘void VHDDetectorConstruction::InitialisationOfMaterials()’: src/VHDDetectorConstruction.cc:240: warning: comparison between signed and unsigned integer expressions Compiling VHDEMPhysics.cc ... Compiling VHDEventAction.cc ... Compiling VHDGeneralPhysics.cc ... Compiling VHDHadronPhysics.cc ... Compiling VHDIonPhysics.cc ... Compiling VHDMuonPhysics.cc ... Compiling VHDNestedPhantomParameterisation.cc ... Compiling VHDPhantomParameterisationColour.cc ... Compiling VHDPhantomZSliceHeader.cc ... Compiling VHDPhysicsList.cc ... Compiling VHDPrimaryGeneratorAction.cc ... Compiling VHDRunAction.cc ... src/VHDRunAction.cc:56:2: warning: no newline at end of file Compiling VHDSensitiveDetector.cc ... Compiling VHDStackingAction.cc ... Creating shared library /home/shuang/g4work/tmp/Linux-g++/VoxelizedHumanDose/libVoxelizedHumanDose.so ... Compiling VoxelizedHumanDose.cc ... Using global libraries ... Linking VoxelizedHumanDose /home/shuang/g4work/tmp/Linux-g++/VoxelizedHumanDose/libVoxelizedHumanDose.so: undefined reference to `VHDAnalysis::EndOfEvent(G4Event const*)' /home/shuang/g4work/tmp/Linux-g++/VoxelizedHumanDose/libVoxelizedHumanDose.so: undefined reference to `VHDAnalysis::singleton' /home/shuang/g4work/tmp/Linux-g++/VoxelizedHumanDose/libVoxelizedHumanDose.so: undefined reference to `VHDAnalysis::PrepareNewRun(G4Run const*)' /home/shuang/g4work/tmp/Linux-g++/VoxelizedHumanDose/libVoxelizedHumanDose.so: undefined reference to `VHDAnalysis::PrepareNewEvent(G4Event const*)' /home/shuang/g4work/tmp/Linux-g++/VoxelizedHumanDose/libVoxelizedHumanDose.so: undefined reference to `VHDAnalysis::EndOfRun(G4Run const*, int*, char*, char*)' /home/shuang/g4work/tmp/Linux-g++/VoxelizedHumanDose/libVoxelizedHumanDose.so: undefined reference to `VHDAnalysis::VHDAnalysis()' collect2: ld returned 1 exit status make: *** [/home/shuang/g4work/bin/Linux-g++/VoxelizedHumanDose] Error 1 =============================================================================

can you let me know how to approach this error?

thanks a lot in advance, Clare

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: linking error after moving g4work folder...   (Leila Moghadasi - 04 Jul, 2012)
 Add Message Add Message
to: "linking error after moving g4work folder..."

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]