<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi Lijunlu,
<P>
<P>Please, try this:<BR><BR>In "variables.gmk", make the following changes.<BR><BR>ifdef G4ANALYSIS_USE_ROOT<BR>CPPFLAGS += -DG4ANALYSIS_USE_ROOT -D_REENTRANT -I$(ROOTSYS)/include<BR>ifdef G4ANALYSIS_USE_ROOT_PLOTTER<BR>CPPFLAGS += -DG4ANALYSIS_USE_ROOT_PLOTTER<BR>endif<BR>EXTRALIBS += `root-config --libs`<BR>endif<BR><BR>
<P align=left><EM><FONT face="Lucida Handwriting, Cursive" size=4></FONT></EM><BR>
<P align=left>It works with me..</P>
<P align=left> </P>
<P align=left>Catarina Duarte<BR><BR></P>
<P align=left><EM><FONT face="Lucida Handwriting, Cursive" size=5></FONT></EM> </P>
<P align=left><EM><FONT face="Lucida Handwriting, Cursive" size=4> </FONT></EM></P><BR><BR><BR>
<BR>
<HR id=stopSpelling>
Date: Wed, 12 Aug 2009 09:15:37 +0800<BR>From: ljlubme@163.com<BR>To: gate-users@lists.healthgrid.org<BR>Subject: [Gate-users] Gate link problem<BR><BR>
<DIV>Dear all users,<BR><BR>When I make GATE4.0 I get the link errors:<BR><BR>Linking Gate ...<BR>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::ReadArray(double*&)'<BR>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::SetReadParam(int)'<BR>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TThread::TThread(char const*, void* (*)(void*), void*, TThread::EPriority)'<BR>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::WriteArray(float const*, int)'<BR>/home/gary/GATE4.0/root/lib/libHist.so: undefined reference to `ROOT::Math::GaussIntegrator::GaussIntegrator()'<BR>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `typeinfo for TSQLResult'<BR>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `vtable for TSQLRow'<BR>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::GetLastProcessID(TRefTable*) const'<BR>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::GetTRefExecId()'<BR>/home/gary/GATE4.0/root/lib/libHist.so: undefined reference to `TMath::ErfInverse(double)'<BR>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::WriteObjectClass(void const*, TClass const*)'<BR>/home/gary/GATE4.0/root/lib/libHist.so: undefined reference to `TMath::Beta(double, double)'<BR>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::ReadVersion(unsigned int*, unsigned int*, TClass const*)'<BR>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::WriteArray(long const*, int)'<BR>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TThread::Run(void*)'<BR>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::WriteProcessID(TProcessID*)'<BR>/home/gary/GATE4.0/root/lib/libHist.so: undefined reference to `ROOT::Math::BrentMinimizer1D::~BrentMinimizer1D()'<BR>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::WriteVersionMemberWise(TClass const*, bool)'<BR>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TKey::Hash() const'<BR>/home/gary/GATE4.0/root/lib/libHist.so: undefined reference to `gRandom'<BR>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `typeinfo for TSQLRow'<BR>/home/gary/GATE4.0/root/lib/libHist.so: undefined reference to `ROOT::Math::RootFinder::RootFinder(ROOT::Math::RootFinder::EType)'<BR>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `int TStreamerInfo::ReadBuffer<char**>(TBuffer&, char** const&, int, int, int, int)'<BR>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::ReadStaticArray(long*)'<BR>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TKey::Streamer(TBuffer&)'<BR>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TStreamerInfo::ReadBufferClones(TBuffer&, TClonesArray*, int, int, int)'<BR>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TMutex::TMutex(bool)'<BR>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::WriteObject(TObject const*)'<BR>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TBufferFile::WriteArray(int const*, int)'<BR>/home/gary/GATE4.0/root/lib/libHist.so: undefined reference to `TMath::BesselK0(double)'<BR>/home/gary/GATE4.0/root/lib/libTree.so: undefined reference to `TMessage::Class()'<BR>/home/gary/GATE4.0/root/lib/libHist.so: undefined reference to `TMath::StruveH0(double)'<BR>collect2: ld returned 1 exit status<BR>make: *** [bin/Linux-g++/Gate] Error 1<BR></DIV>
<DIV>I use the root5.22 and gate4.0,How can I solve it for gate? I have tried some method the helper offered,but it fails</DIV>
<DIV>thanks</DIV>
<DIV>lijunlu</DIV>
<DIV>Southern Medical University ,China</DIV>
<DIV><A href="mailto:ljlubme@163.com">ljlubme@163.com</A> </DIV>
<DIV> </DIV>
<DIV> </DIV><BR><BR><SPAN title=neteasefooter>
<HR>
<A href="http://www.yeah.net/?from=footer">没有广告的终身免费邮箱,www.yeah.net</A> </SPAN><br /><hr />O Windows Live ajuda-o a manter-se em contacto com todos os seus amigos, <a href='http://www.microsoft.com/portugal/windows/windowslive/products/social-network-connector.aspx' target='_new'>num só local.</a></body>
</html>