Hello Chris!<br><br>I would try adding the path to your .o-files to LD_LIBRARY_PATH, like I wrote in the post to Congwu. The default path where they end up is &quot;gate_your_version/tmp/Linux-g++/Gate&quot;, you can check that directory to see if you find the files there (the ones which produce the undefined references, such as GateARFDataToRoot etc.). If that doesn&#39;t work, I don&#39;t know! =)<br>
<br>/Ida <br><br><div class="gmail_quote">2009/10/9 Chris Reynolds <span dir="ltr">&lt;<a href="mailto:C.Reynolds@westminster.ac.uk">C.Reynolds@westminster.ac.uk</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi,<br>
I&#39;m also have linker issues on Ubuntu. Similarly compilation is fine:<br>
<br>
Linking Gate<br>
./tmp/Linux-g++/Gate/libGate.a(GateOutputMgr.o): In function<br>
`GateOutputMgr::GateOutputMgr(G4String)&#39;:<br>
GateOutputMgr.cc:(.text+0xd13): undefined reference to<br>
`GateARFDataToRoot::GateARFDataToRoot(G4String const&amp;, GateOutputMgr*,<br>
DigiMode)&#39;<br>
./tmp/Linux-g++/Gate/libGate.a(GateOutputMgr.o): In function<br>
`GateOutputMgr::GateOutputMgr(G4String)&#39;:<br>
GateOutputMgr.cc:(.text+0x12b3): undefined reference to<br>
`GateARFDataToRoot::GateARFDataToRoot(G4String const&amp;, GateOutputMgr*,<br>
DigiMode)&#39;<br>
./tmp/Linux-g++/Gate/libGate.a(GateSteppingAction.o): In function<br>
`GateSteppingAction::UserSteppingAction(G4Step const*)&#39;:<br>
GateSteppingAction.cc:(.text+0x232d): undefined reference to `typeinfo<br>
for GateARFDataToRoot&#39;<br>
GateSteppingAction.cc:(.text+0x23b3): undefined reference to<br>
`GateARFDataToRoot::IncrementNbOfSourcePhotons()&#39;<br>
<div class="im">collect2: ld returned 1 exit status<br>
make: *** [bin/Linux-g++/Gate] Error 1<br>
<br>
<br>
</div><div><div></div><div class="h5">On Wed, 2009-10-07 at 13:44 -0700, C C wrote:<br>
&gt; Hi, everyone, I have problems of compiling the gate5.<br>
&gt; the OS is Suse. It seems the compilation is not a problem. But just<br>
&gt; cannot link. In the screen output there are a lot of &quot;undefinded<br>
&gt; reference&quot; error. Below is part of the message. Can anybody give a<br>
&gt; hint what may be the problem. Thanks a lot.<br>
&gt;<br>
&gt; Congwu<br>
&gt;<br>
&gt; ..........<br>
&gt; GateMDBFieldDecoder.cc:(.text+0x1843): undefined reference to<br>
&gt; `GateTokenizer::CleanUpString(G4String&amp;)&#39;<br>
&gt; GateMDBFieldDecoder.cc:(.text+0x1857): undefined reference to<br>
&gt; `GateTokenizer::BreakString(G4String const&amp;, char)&#39;<br>
&gt; GateMDBFieldDecoder.cc:(.text+0x1881): undefined reference to<br>
&gt; `GateTokenizer::CleanUpString(G4String&amp;)&#39;<br>
&gt; ./tmp/Linux-g++/Gate/libGate.a(GateMDBFieldDecoder.o): In function<br>
&gt; `GateMDBFieldDecoder::DecodeNumericField(G4String const&amp;, G4String,<br>
&gt; G4String const&amp;, GateMap&lt;G4String, int&gt;&amp;, GateMap&lt;G4String,<br>
&gt; double&gt;&amp;)&#39;:<br>
&gt; GateMDBFieldDecoder.cc:(.text+0x254e): undefined reference to<br>
&gt; `GateTokenizer::CleanUpString(G4String&amp;)&#39;<br>
&gt; GateMDBFieldDecoder.cc:(.text+0x2648): undefined reference to<br>
&gt; `GateTokenizer::CleanUpString(G4String&amp;)&#39;<br>
&gt; ./tmp/Linux-g++/Gate/libGate.a(GateMDBFieldDecoder.o): In function<br>
&gt; `GateMDBFieldDecoder::DecodeTextField(G4String const&amp;, G4String,<br>
&gt; G4String const&amp;, GateMap&lt;G4String, int&gt;&amp;)&#39;:<br>
&gt; GateMDBFieldDecoder.cc:(.text+0x2bce): undefined reference to<br>
&gt; `GateTokenizer::CleanUpString(G4String&amp;)&#39;<br>
&gt; GateMDBFieldDecoder.cc:(.text+0x2cc5): undefined reference to<br>
&gt; `GateTokenizer::CleanUpString(G4String&amp;)&#39;<br>
&gt; ./tmp/Linux-g<br>
&gt; ++/Gate/libGate.a(GateMDBFieldDecoder.o):GateMDBFieldDecoder.cc:(.text<br>
&gt; +0x2f8a): more undefined references to<br>
&gt; `GateTokenizer::CleanUpString(G4String&amp;)&#39; follow<br>
&gt; ./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o):<br>
&gt; In function<br>
&gt; `GateCompressedVoxelOutputMessenger::~GateCompressedVoxelOutputMessenger()&#39;:<br>
&gt; GateCompressedVoxelOutputMessenger.cc:(.text+0x5b): undefined<br>
&gt; reference to `GateOutputModuleMessenger::~GateOutputModuleMessenger()&#39;<br>
&gt; GateCompressedVoxelOutputMessenger.cc:(.text+0x7c): undefined<br>
&gt; reference to `GateOutputModuleMessenger::~GateOutputModuleMessenger()&#39;<br>
&gt; ./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o):<br>
&gt; In function<br>
&gt; `GateCompressedVoxelOutputMessenger::~GateCompressedVoxelOutputMessenger()&#39;:<br>
&gt; GateCompressedVoxelOutputMessenger.cc:(.text+0xd4): undefined<br>
&gt; reference to `GateOutputModuleMessenger::~GateOutputModuleMessenger()&#39;<br>
&gt; ./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o):<br>
&gt; In function<br>
&gt; `GateCompressedVoxelOutputMessenger::~GateCompressedVoxelOutputMessenger()&#39;:<br>
&gt; GateCompressedVoxelOutputMessenger.cc:(.text+0x124): undefined<br>
&gt; reference to `GateOutputModuleMessenger::~GateOutputModuleMessenger()&#39;<br>
&gt; ./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o):<br>
&gt; In function<br>
&gt; `GateCompressedVoxelOutputMessenger::SetNewValue(G4UIcommand*,<br>
&gt; G4String)&#39;:<br>
&gt; GateCompressedVoxelOutputMessenger.cc:(.text+0x31f): undefined<br>
&gt; reference to `GateOutputModuleMessenger::SetNewValue(G4UIcommand*,<br>
&gt; G4String)&#39;<br>
&gt; ./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o):<br>
&gt; In function<br>
&gt; `GateCompressedVoxelOutputMessenger::GateCompressedVoxelOutputMessenger(GateCompressedVoxelOutput*)&#39;:<br>
&gt; GateCompressedVoxelOutputMessenger.cc:(.text+0x490): undefined<br>
&gt; reference to<br>
&gt; `GateOutputModuleMessenger::GateOutputModuleMessenger(GateVOutputModule*)&#39;<br>
&gt; GateCompressedVoxelOutputMessenger.cc:(.text+0x73b): undefined<br>
&gt; reference to `GateOutputModuleMessenger::~GateOutputModuleMessenger()&#39;<br>
&gt; ./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o):<br>
&gt; In function<br>
&gt; `GateCompressedVoxelOutputMessenger::GateCompressedVoxelOutputMessenger(GateCompressedVoxelOutput*)&#39;:<br>
&gt; GateCompressedVoxelOutputMessenger.cc:(.text+0x960): undefined<br>
&gt; reference to<br>
&gt; `GateOutputModuleMessenger::GateOutputModuleMessenger(GateVOutputModule*)&#39;<br>
&gt; GateCompressedVoxelOutputMessenger.cc:(.text+0xc0b): undefined<br>
&gt; reference to `GateOutputModuleMessenger::~GateOutputModuleMessenger()&#39;<br>
&gt; ./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o):<br>
&gt; In function<br>
&gt; `GateCompressedVoxelOutputMessenger::~GateCompressedVoxelOutputMessenger()&#39;:<br>
&gt; GateCompressedVoxelOutputMessenger.cc:(.text+0xc9): undefined<br>
&gt; reference to `GateOutputModuleMessenger::~GateOutputModuleMessenger()&#39;<br>
&gt; ./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o):<br>
&gt; In function<br>
&gt; `GateCompressedVoxelOutputMessenger::~GateCompressedVoxelOutputMessenger()&#39;:<br>
&gt; GateCompressedVoxelOutputMessenger.cc:(.text+0x119): undefined<br>
&gt; reference to `GateOutputModuleMessenger::~GateOutputModuleMessenger()&#39;<br>
&gt; ./tmp/Linux-g<br>
&gt; ++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o):(.rodata._ZTI34GateCompressedVoxelOutputMessenger[typeinfo for GateCompressedVoxelOutputMessenger]+0x10): undefined reference to `typeinfo for GateOutputModuleMessenger&#39;<br>

&gt; ./tmp/Linux-g++/Gate/libGate.a(GateFictitiousVoxelMapInserter.o): In<br>
&gt; function `GateFictitiousVoxelMapInserter::AddOutput(G4String)&#39;:<br>
&gt; GateFictitiousVoxelMapInserter.cc:(.text+0xb36): undefined reference<br>
&gt; to `GateOutputMgr::instance&#39;<br>
&gt; GateFictitiousVoxelMapInserter.cc:(.text+0xb48): undefined reference<br>
&gt; to `GateOutputMgr::instance&#39;<br>
&gt; GateFictitiousVoxelMapInserter.cc:(.text+0xb54): undefined reference<br>
&gt; to `GateOutputMgr::m_digiMode&#39;<br>
&gt; GateFictitiousVoxelMapInserter.cc:(.text+0xb86): undefined reference<br>
&gt; to `GateOutputMgr::AddOutputModule(GateVOutputModule*)&#39;<br>
&gt; GateFictitiousVoxelMapInserter.cc:(.text+0xbfe): undefined reference<br>
&gt; to `GateOutputMgr::GateOutputMgr(G4String)&#39;<br>
&gt; GateFictitiousVoxelMapInserter.cc:(.text+0xc05): undefined reference<br>
&gt; to `GateOutputMgr::instance&#39;<br>
&gt; collect2: ld returned 1 exit status<br>
&gt; make: *** [bin/Linux-g++/Gate] Error 1<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ______________________________________________________________________<br>
&gt; Hotmail: Powerful Free email with security by Microsoft. Get it now.<br>
</div></div><div class="im">&gt; _______________________________________________<br>
&gt; Gate-users mailing list<br>
&gt; <a href="mailto:Gate-users@lists.healthgrid.org">Gate-users@lists.healthgrid.org</a><br>
&gt; <a href="http://lists.healthgrid.org/mailman/listinfo/gate-users" target="_blank">http://lists.healthgrid.org/mailman/listinfo/gate-users</a><br>
<br>
<br>
</div><font color="#888888">--<br>
The University of Westminster is a charity and a company limited by<br>
guarantee.  Registration number: 977818 England.  Registered Office:<br>
309 Regent Street, London W1B 2UW, UK.<br>
</font><div><div></div><div class="h5">_______________________________________________<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" target="_blank">http://lists.healthgrid.org/mailman/listinfo/gate-users</a><br>
</div></div></blockquote></div><br>