Message: error just after "Linking CXX executable" Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question error just after "Linking CXX executable" 

Forum: Run Management
Date: 27 May, 2013
From: sergi <sergi>

Dear collegues,

I had a exectubale file named "new" that works without the detector messenger class. I have included this class to my "new" file following the example N03. (I want to change the material and the thickness of a converter layer) When make runs and just after the output line "linking CXX exectuble new" I get the folllowing error:

CMakeFiles/new.dir/src/DetectorConstruction.cc.o: In function `DetectorConstruction::DetectorConstruction()':

DetectorConstruction.cc:(.text+0x24bb): undefined reference to `DetectorConstruction::SetConverterMaterial(G4String)'

CMakeFiles/new.dir/src/DetectorConstruction.cc.o: In function `DetectorConstruction::DetectorConstruction()':

DetectorConstruction.cc:(.text+0x2625): undefined reference to `DetectorConstruction::SetConverterMaterial(G4String)'

CMakeFiles/new.dir/src/DetectorMessenger.cc.o: In function `DetectorMessenger::SetNewValue(G4UIcommand*, G4String)':

DetectorMessenger.cc:(.text+0xad): undefined reference to `DetectorConstruction::SetConverterMaterial(G4String)'

DetectorMessenger.cc:(.text+0x108): undefined reference to `DetectorConstruction::SetConverterThickness(double)'

DetectorMessenger.cc:(.text+0x123): undefined reference to `DetectorConstruction::UpdateGeometry()'

collect2: ld returned 1 exit status

make[2]: *** [new] Error 1

make[1]: *** [CMakeFiles/new.dir/all] Error 2

make: *** [all] Error 2

Could somebody say if this error is due to an error in the classes or is an error from my CMakeList.txt?? I hope that somebody could help me with this. Thank you very much! Sergi

 Add Message Add Message
to: "error just after "Linking CXX executable""

 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 ]