<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Thanks for Ida's suggestion. There must something messed up so that some classes were not compiled and therefore the lib file did not appear. So I just erased the whole gate directory and started over. everything worked fine.<br><br><hr id="stopSpelling">Date: Thu, 8 Oct 2009 08:28:07 +0200<br>Subject: Re: [Gate-users] Link problem in compiling Gate5-p01<br>From: ida.haggstrom@radfys.umu.se<br>To: phasenew@hotmail.com<br><br>Dear Congwu,<br><br>I'm not sure, but I think you need to specify the path to your compiled files. During compilation, all your .o-files (e.g. GateTokenzier.o that was your first undefined reference) end up in the directory "gate_v5.0.0.0/tmp/Linux-g++/Gate". During linking it has to find these files, so you need to add that path to, I think, LD_LIBRARY_PATH (correct me if I'm wrong anyone!). You have to do that prior to typing make. Do set the path, type (at least for centOS, dunno for Suse)<br>
<br>export LD_LIBRARY_PATH=<yourPathToGate>/gate_v5.0.0.0/tmp/Linux-g++/Gate:$LD_LIBRARY_PATH<br><br>alternatively you can use the "setenv" command I think, if you don't use "export" in Suse.<br>
<br>Good luck!<br>Ida<br><br><br><div class="ecxgmail_quote">2009/10/7 C C <span dir="ltr"><<a href="mailto:phasenew@hotmail.com">phasenew@hotmail.com</a>></span><br><blockquote class="ecxgmail_quote" style="padding-left: 1ex;">
<div>
Hi, everyone, I have problems of compiling the gate5.<br>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.<br>
<br>Congwu<br><br>..........<br>GateMDBFieldDecoder.cc:(.text+0x1843): undefined reference to `GateTokenizer::CleanUpString(G4String&)'<br>GateMDBFieldDecoder.cc:(.text+0x1857): undefined reference to `GateTokenizer::BreakString(G4String const&, char)'<br>
GateMDBFieldDecoder.cc:(.text+0x1881): undefined reference to `GateTokenizer::CleanUpString(G4String&)'<br>./tmp/Linux-g++/Gate/libGate.a(GateMDBFieldDecoder.o): In function `GateMDBFieldDecoder::DecodeNumericField(G4String const&, G4String, G4String const&, GateMap<G4String, int>&, GateMap<G4String, double>&)':<br>
GateMDBFieldDecoder.cc:(.text+0x254e): undefined reference to `GateTokenizer::CleanUpString(G4String&)'<br>GateMDBFieldDecoder.cc:(.text+0x2648): undefined reference to `GateTokenizer::CleanUpString(G4String&)'<br>
./tmp/Linux-g++/Gate/libGate.a(GateMDBFieldDecoder.o): In function `GateMDBFieldDecoder::DecodeTextField(G4String const&, G4String, G4String const&, GateMap<G4String, int>&)':<br>GateMDBFieldDecoder.cc:(.text+0x2bce): undefined reference to `GateTokenizer::CleanUpString(G4String&)'<br>
GateMDBFieldDecoder.cc:(.text+0x2cc5): undefined reference to `GateTokenizer::CleanUpString(G4String&)'<br>./tmp/Linux-g++/Gate/libGate.a(GateMDBFieldDecoder.o):GateMDBFieldDecoder.cc:(.text+0x2f8a): more undefined references to `GateTokenizer::CleanUpString(G4String&)' follow<br>
./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o): In function `GateCompressedVoxelOutputMessenger::~GateCompressedVoxelOutputMessenger()':<br>GateCompressedVoxelOutputMessenger.cc:(.text+0x5b): undefined reference to `GateOutputModuleMessenger::~GateOutputModuleMessenger()'<br>
GateCompressedVoxelOutputMessenger.cc:(.text+0x7c): undefined reference to `GateOutputModuleMessenger::~GateOutputModuleMessenger()'<br>./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o): In function `GateCompressedVoxelOutputMessenger::~GateCompressedVoxelOutputMessenger()':<br>
GateCompressedVoxelOutputMessenger.cc:(.text+0xd4): undefined reference to `GateOutputModuleMessenger::~GateOutputModuleMessenger()'<br>./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o): In function `GateCompressedVoxelOutputMessenger::~GateCompressedVoxelOutputMessenger()':<br>
GateCompressedVoxelOutputMessenger.cc:(.text+0x124): undefined reference to `GateOutputModuleMessenger::~GateOutputModuleMessenger()'<br>./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o): In function `GateCompressedVoxelOutputMessenger::SetNewValue(G4UIcommand*, G4String)':<br>
GateCompressedVoxelOutputMessenger.cc:(.text+0x31f): undefined reference to `GateOutputModuleMessenger::SetNewValue(G4UIcommand*, G4String)'<br>./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o): In function `GateCompressedVoxelOutputMessenger::GateCompressedVoxelOutputMessenger(GateCompressedVoxelOutput*)':<br>
GateCompressedVoxelOutputMessenger.cc:(.text+0x490): undefined reference to `GateOutputModuleMessenger::GateOutputModuleMessenger(GateVOutputModule*)'<br>GateCompressedVoxelOutputMessenger.cc:(.text+0x73b): undefined reference to `GateOutputModuleMessenger::~GateOutputModuleMessenger()'<br>
./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o): In function `GateCompressedVoxelOutputMessenger::GateCompressedVoxelOutputMessenger(GateCompressedVoxelOutput*)':<br>GateCompressedVoxelOutputMessenger.cc:(.text+0x960): undefined reference to `GateOutputModuleMessenger::GateOutputModuleMessenger(GateVOutputModule*)'<br>
GateCompressedVoxelOutputMessenger.cc:(.text+0xc0b): undefined reference to `GateOutputModuleMessenger::~GateOutputModuleMessenger()'<br>./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o): In function `GateCompressedVoxelOutputMessenger::~GateCompressedVoxelOutputMessenger()':<br>
GateCompressedVoxelOutputMessenger.cc:(.text+0xc9): undefined reference to `GateOutputModuleMessenger::~GateOutputModuleMessenger()'<br>./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o): In function `GateCompressedVoxelOutputMessenger::~GateCompressedVoxelOutputMessenger()':<br>
GateCompressedVoxelOutputMessenger.cc:(.text+0x119): undefined reference to `GateOutputModuleMessenger::~GateOutputModuleMessenger()'<br>./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o):(.rodata._ZTI34GateCompressedVoxelOutputMessenger[typeinfo for GateCompressedVoxelOutputMessenger]+0x10): undefined reference to `typeinfo for GateOutputModuleMessenger'<br>
./tmp/Linux-g++/Gate/libGate.a(GateFictitiousVoxelMapInserter.o): In function `GateFictitiousVoxelMapInserter::AddOutput(G4String)':<br>GateFictitiousVoxelMapInserter.cc:(.text+0xb36): undefined reference to `GateOutputMgr::instance'<br>
GateFictitiousVoxelMapInserter.cc:(.text+0xb48): undefined reference to `GateOutputMgr::instance'<br>GateFictitiousVoxelMapInserter.cc:(.text+0xb54): undefined reference to `GateOutputMgr::m_digiMode'<br>GateFictitiousVoxelMapInserter.cc:(.text+0xb86): undefined reference to `GateOutputMgr::AddOutputModule(GateVOutputModule*)'<br>
GateFictitiousVoxelMapInserter.cc:(.text+0xbfe): undefined reference to `GateOutputMgr::GateOutputMgr(G4String)'<br>GateFictitiousVoxelMapInserter.cc:(.text+0xc05): undefined reference to `GateOutputMgr::instance'<br>
collect2: ld returned 1 exit status<br>make: *** [bin/Linux-g++/Gate] Error 1<br><div><br>                                            <br><hr>Hotmail: Powerful Free email with security by Microsoft. <a href="http://clk.atdmt.com/GBL/go/171222986/direct/01/">Get it now.</a></div>
</div>
<br>_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.healthgrid.org">Gate-users@lists.healthgrid.org</a><br>
<a href="http://lists.healthgrid.org/mailman/listinfo/gate-users">http://lists.healthgrid.org/mailman/listinfo/gate-users</a><br>
<br></blockquote></div><br>                                            <br /><hr />Hotmail: Trusted email with powerful SPAM protection. <a href='http://clk.atdmt.com/GBL/go/177141665/direct/01/' target='_new'>Sign up now.</a></body>
</html>