[Gate-users] Link problem in compiling Gate5-p01

C C phasenew at hotmail.com
Wed Oct 7 22:44:36 CEST 2009


Hi, everyone, I have problems of compiling the gate5.
the OS is Suse. It seems the compilation is not a problem. But just cannot link. In the screen output there are a lot of "undefinded reference" error. Below is part of the message. Can anybody give a hint what may be the problem. Thanks a lot.

Congwu

..........
GateMDBFieldDecoder.cc:(.text+0x1843): undefined reference to `GateTokenizer::CleanUpString(G4String&)'
GateMDBFieldDecoder.cc:(.text+0x1857): undefined reference to `GateTokenizer::BreakString(G4String const&, char)'
GateMDBFieldDecoder.cc:(.text+0x1881): undefined reference to `GateTokenizer::CleanUpString(G4String&)'
./tmp/Linux-g++/Gate/libGate.a(GateMDBFieldDecoder.o): In function `GateMDBFieldDecoder::DecodeNumericField(G4String const&, G4String, G4String const&, GateMap<G4String, int>&, GateMap<G4String, double>&)':
GateMDBFieldDecoder.cc:(.text+0x254e): undefined reference to `GateTokenizer::CleanUpString(G4String&)'
GateMDBFieldDecoder.cc:(.text+0x2648): undefined reference to `GateTokenizer::CleanUpString(G4String&)'
./tmp/Linux-g++/Gate/libGate.a(GateMDBFieldDecoder.o): In function `GateMDBFieldDecoder::DecodeTextField(G4String const&, G4String, G4String const&, GateMap<G4String, int>&)':
GateMDBFieldDecoder.cc:(.text+0x2bce): undefined reference to `GateTokenizer::CleanUpString(G4String&)'
GateMDBFieldDecoder.cc:(.text+0x2cc5): undefined reference to `GateTokenizer::CleanUpString(G4String&)'
./tmp/Linux-g++/Gate/libGate.a(GateMDBFieldDecoder.o):GateMDBFieldDecoder.cc:(.text+0x2f8a): more undefined references to `GateTokenizer::CleanUpString(G4String&)' follow
./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o): In function `GateCompressedVoxelOutputMessenger::~GateCompressedVoxelOutputMessenger()':
GateCompressedVoxelOutputMessenger.cc:(.text+0x5b): undefined reference to `GateOutputModuleMessenger::~GateOutputModuleMessenger()'
GateCompressedVoxelOutputMessenger.cc:(.text+0x7c): undefined reference to `GateOutputModuleMessenger::~GateOutputModuleMessenger()'
./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o): In function `GateCompressedVoxelOutputMessenger::~GateCompressedVoxelOutputMessenger()':
GateCompressedVoxelOutputMessenger.cc:(.text+0xd4): undefined reference to `GateOutputModuleMessenger::~GateOutputModuleMessenger()'
./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o): In function `GateCompressedVoxelOutputMessenger::~GateCompressedVoxelOutputMessenger()':
GateCompressedVoxelOutputMessenger.cc:(.text+0x124): undefined reference to `GateOutputModuleMessenger::~GateOutputModuleMessenger()'
./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o): In function `GateCompressedVoxelOutputMessenger::SetNewValue(G4UIcommand*, G4String)':
GateCompressedVoxelOutputMessenger.cc:(.text+0x31f): undefined reference to `GateOutputModuleMessenger::SetNewValue(G4UIcommand*, G4String)'
./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o): In function `GateCompressedVoxelOutputMessenger::GateCompressedVoxelOutputMessenger(GateCompressedVoxelOutput*)':
GateCompressedVoxelOutputMessenger.cc:(.text+0x490): undefined reference to `GateOutputModuleMessenger::GateOutputModuleMessenger(GateVOutputModule*)'
GateCompressedVoxelOutputMessenger.cc:(.text+0x73b): undefined reference to `GateOutputModuleMessenger::~GateOutputModuleMessenger()'
./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o): In function `GateCompressedVoxelOutputMessenger::GateCompressedVoxelOutputMessenger(GateCompressedVoxelOutput*)':
GateCompressedVoxelOutputMessenger.cc:(.text+0x960): undefined reference to `GateOutputModuleMessenger::GateOutputModuleMessenger(GateVOutputModule*)'
GateCompressedVoxelOutputMessenger.cc:(.text+0xc0b): undefined reference to `GateOutputModuleMessenger::~GateOutputModuleMessenger()'
./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o): In function `GateCompressedVoxelOutputMessenger::~GateCompressedVoxelOutputMessenger()':
GateCompressedVoxelOutputMessenger.cc:(.text+0xc9): undefined reference to `GateOutputModuleMessenger::~GateOutputModuleMessenger()'
./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o): In function `GateCompressedVoxelOutputMessenger::~GateCompressedVoxelOutputMessenger()':
GateCompressedVoxelOutputMessenger.cc:(.text+0x119): undefined reference to `GateOutputModuleMessenger::~GateOutputModuleMessenger()'
./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o):(.rodata._ZTI34GateCompressedVoxelOutputMessenger[typeinfo for GateCompressedVoxelOutputMessenger]+0x10): undefined reference to `typeinfo for GateOutputModuleMessenger'
./tmp/Linux-g++/Gate/libGate.a(GateFictitiousVoxelMapInserter.o): In function `GateFictitiousVoxelMapInserter::AddOutput(G4String)':
GateFictitiousVoxelMapInserter.cc:(.text+0xb36): undefined reference to `GateOutputMgr::instance'
GateFictitiousVoxelMapInserter.cc:(.text+0xb48): undefined reference to `GateOutputMgr::instance'
GateFictitiousVoxelMapInserter.cc:(.text+0xb54): undefined reference to `GateOutputMgr::m_digiMode'
GateFictitiousVoxelMapInserter.cc:(.text+0xb86): undefined reference to `GateOutputMgr::AddOutputModule(GateVOutputModule*)'
GateFictitiousVoxelMapInserter.cc:(.text+0xbfe): undefined reference to `GateOutputMgr::GateOutputMgr(G4String)'
GateFictitiousVoxelMapInserter.cc:(.text+0xc05): undefined reference to `GateOutputMgr::instance'
collect2: ld returned 1 exit status
make: *** [bin/Linux-g++/Gate] Error 1

 		 	   		  
_________________________________________________________________
Hotmail: Powerful Free email with security by Microsoft.
http://clk.atdmt.com/GBL/go/171222986/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20091007/247328e7/attachment.htm>


More information about the Gate-users mailing list