Hi,<br><br>LD_LIBRARY_PATH is only used at the runtime for the programs to search the dynamic libraries.<br>Check out the compilation at the beggining (compilation for the arf directory), I'm pretty sure some of the classes just did not compile, and so did not create some object files (.o), and that's why the link crashed.<br>
Since GATE is organized in thematic source directories, when a compilation problem occurs, it just stops the compilation in this directory, and others continue, that leads to link problem.<br><br>Cheers,<br>Simon<br><br><div class="gmail_quote">
2009/10/12 Ida Häggström <span dir="ltr"><<a href="mailto:ida.haggstrom@radfys.umu.se">ida.haggstrom@radfys.umu.se</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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 "gate_your_version/tmp/Linux-g++/Gate", 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't work, I don't know! =)<br>
<br>/Ida <br><br><div class="gmail_quote">2009/10/9 Chris Reynolds <span dir="ltr"><<a href="mailto:C.Reynolds@westminster.ac.uk" target="_blank">C.Reynolds@westminster.ac.uk</a>></span><div><div></div><div class="h5">
<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'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)':<br>
GateOutputMgr.cc:(.text+0xd13): undefined reference to<br>
`GateARFDataToRoot::GateARFDataToRoot(G4String const&, GateOutputMgr*,<br>
DigiMode)'<br>
./tmp/Linux-g++/Gate/libGate.a(GateOutputMgr.o): In function<br>
`GateOutputMgr::GateOutputMgr(G4String)':<br>
GateOutputMgr.cc:(.text+0x12b3): undefined reference to<br>
`GateARFDataToRoot::GateARFDataToRoot(G4String const&, GateOutputMgr*,<br>
DigiMode)'<br>
./tmp/Linux-g++/Gate/libGate.a(GateSteppingAction.o): In function<br>
`GateSteppingAction::UserSteppingAction(G4Step const*)':<br>
GateSteppingAction.cc:(.text+0x232d): undefined reference to `typeinfo<br>
for GateARFDataToRoot'<br>
GateSteppingAction.cc:(.text+0x23b3): undefined reference to<br>
`GateARFDataToRoot::IncrementNbOfSourcePhotons()'<br>
<div>collect2: ld returned 1 exit status<br>
make: *** [bin/Linux-g++/Gate] Error 1<br>
<br>
<br>
</div><div><div></div><div>On Wed, 2009-10-07 at 13:44 -0700, C C wrote:<br>
> Hi, everyone, I have problems of compiling the gate5.<br>
> the OS is Suse. It seems the compilation is not a problem. But just<br>
> cannot link. In the screen output there are a lot of "undefinded<br>
> reference" error. Below is part of the message. Can anybody give a<br>
> hint what may be the problem. Thanks a lot.<br>
><br>
> Congwu<br>
><br>
> ..........<br>
> GateMDBFieldDecoder.cc:(.text+0x1843): undefined reference to<br>
> `GateTokenizer::CleanUpString(G4String&)'<br>
> GateMDBFieldDecoder.cc:(.text+0x1857): undefined reference to<br>
> `GateTokenizer::BreakString(G4String const&, char)'<br>
> GateMDBFieldDecoder.cc:(.text+0x1881): undefined reference to<br>
> `GateTokenizer::CleanUpString(G4String&)'<br>
> ./tmp/Linux-g++/Gate/libGate.a(GateMDBFieldDecoder.o): In function<br>
> `GateMDBFieldDecoder::DecodeNumericField(G4String const&, G4String,<br>
> G4String const&, GateMap<G4String, int>&, GateMap<G4String,<br>
> double>&)':<br>
> GateMDBFieldDecoder.cc:(.text+0x254e): undefined reference to<br>
> `GateTokenizer::CleanUpString(G4String&)'<br>
> GateMDBFieldDecoder.cc:(.text+0x2648): undefined reference to<br>
> `GateTokenizer::CleanUpString(G4String&)'<br>
> ./tmp/Linux-g++/Gate/libGate.a(GateMDBFieldDecoder.o): In function<br>
> `GateMDBFieldDecoder::DecodeTextField(G4String const&, G4String,<br>
> G4String const&, GateMap<G4String, int>&)':<br>
> GateMDBFieldDecoder.cc:(.text+0x2bce): undefined reference to<br>
> `GateTokenizer::CleanUpString(G4String&)'<br>
> GateMDBFieldDecoder.cc:(.text+0x2cc5): undefined reference to<br>
> `GateTokenizer::CleanUpString(G4String&)'<br>
> ./tmp/Linux-g<br>
> ++/Gate/libGate.a(GateMDBFieldDecoder.o):GateMDBFieldDecoder.cc:(.text<br>
> +0x2f8a): more undefined references to<br>
> `GateTokenizer::CleanUpString(G4String&)' follow<br>
> ./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o):<br>
> In function<br>
> `GateCompressedVoxelOutputMessenger::~GateCompressedVoxelOutputMessenger()':<br>
> GateCompressedVoxelOutputMessenger.cc:(.text+0x5b): undefined<br>
> reference to `GateOutputModuleMessenger::~GateOutputModuleMessenger()'<br>
> GateCompressedVoxelOutputMessenger.cc:(.text+0x7c): undefined<br>
> reference to `GateOutputModuleMessenger::~GateOutputModuleMessenger()'<br>
> ./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o):<br>
> In function<br>
> `GateCompressedVoxelOutputMessenger::~GateCompressedVoxelOutputMessenger()':<br>
> GateCompressedVoxelOutputMessenger.cc:(.text+0xd4): undefined<br>
> reference to `GateOutputModuleMessenger::~GateOutputModuleMessenger()'<br>
> ./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o):<br>
> In function<br>
> `GateCompressedVoxelOutputMessenger::~GateCompressedVoxelOutputMessenger()':<br>
> GateCompressedVoxelOutputMessenger.cc:(.text+0x124): undefined<br>
> reference to `GateOutputModuleMessenger::~GateOutputModuleMessenger()'<br>
> ./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o):<br>
> In function<br>
> `GateCompressedVoxelOutputMessenger::SetNewValue(G4UIcommand*,<br>
> G4String)':<br>
> GateCompressedVoxelOutputMessenger.cc:(.text+0x31f): undefined<br>
> reference to `GateOutputModuleMessenger::SetNewValue(G4UIcommand*,<br>
> G4String)'<br>
> ./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o):<br>
> In function<br>
> `GateCompressedVoxelOutputMessenger::GateCompressedVoxelOutputMessenger(GateCompressedVoxelOutput*)':<br>
> GateCompressedVoxelOutputMessenger.cc:(.text+0x490): undefined<br>
> reference to<br>
> `GateOutputModuleMessenger::GateOutputModuleMessenger(GateVOutputModule*)'<br>
> GateCompressedVoxelOutputMessenger.cc:(.text+0x73b): undefined<br>
> reference to `GateOutputModuleMessenger::~GateOutputModuleMessenger()'<br>
> ./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o):<br>
> In function<br>
> `GateCompressedVoxelOutputMessenger::GateCompressedVoxelOutputMessenger(GateCompressedVoxelOutput*)':<br>
> GateCompressedVoxelOutputMessenger.cc:(.text+0x960): undefined<br>
> reference to<br>
> `GateOutputModuleMessenger::GateOutputModuleMessenger(GateVOutputModule*)'<br>
> GateCompressedVoxelOutputMessenger.cc:(.text+0xc0b): undefined<br>
> reference to `GateOutputModuleMessenger::~GateOutputModuleMessenger()'<br>
> ./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o):<br>
> In function<br>
> `GateCompressedVoxelOutputMessenger::~GateCompressedVoxelOutputMessenger()':<br>
> GateCompressedVoxelOutputMessenger.cc:(.text+0xc9): undefined<br>
> reference to `GateOutputModuleMessenger::~GateOutputModuleMessenger()'<br>
> ./tmp/Linux-g++/Gate/libGate.a(GateCompressedVoxelOutputMessenger.o):<br>
> In function<br>
> `GateCompressedVoxelOutputMessenger::~GateCompressedVoxelOutputMessenger()':<br>
> GateCompressedVoxelOutputMessenger.cc:(.text+0x119): undefined<br>
> reference to `GateOutputModuleMessenger::~GateOutputModuleMessenger()'<br>
> ./tmp/Linux-g<br>
> ++/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<br>
> function `GateFictitiousVoxelMapInserter::AddOutput(G4String)':<br>
> GateFictitiousVoxelMapInserter.cc:(.text+0xb36): undefined reference<br>
> to `GateOutputMgr::instance'<br>
> GateFictitiousVoxelMapInserter.cc:(.text+0xb48): undefined reference<br>
> to `GateOutputMgr::instance'<br>
> GateFictitiousVoxelMapInserter.cc:(.text+0xb54): undefined reference<br>
> to `GateOutputMgr::m_digiMode'<br>
> GateFictitiousVoxelMapInserter.cc:(.text+0xb86): undefined reference<br>
> to `GateOutputMgr::AddOutputModule(GateVOutputModule*)'<br>
> GateFictitiousVoxelMapInserter.cc:(.text+0xbfe): undefined reference<br>
> to `GateOutputMgr::GateOutputMgr(G4String)'<br>
> GateFictitiousVoxelMapInserter.cc:(.text+0xc05): undefined reference<br>
> to `GateOutputMgr::instance'<br>
> collect2: ld returned 1 exit status<br>
> make: *** [bin/Linux-g++/Gate] Error 1<br>
><br>
><br>
><br>
> ______________________________________________________________________<br>
> Hotmail: Powerful Free email with security by Microsoft. Get it now.<br>
</div></div><div>> _______________________________________________<br>
> Gate-users mailing list<br>
> <a href="mailto:Gate-users@lists.healthgrid.org" target="_blank">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>
<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>_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.healthgrid.org" target="_blank">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></div></div><br>
<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" target="_blank">http://lists.healthgrid.org/mailman/listinfo/gate-users</a><br>
<br></blockquote></div><br>