<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
> From: erin@computerhead.com.au<BR>> To: wjryder@hotmail.com<BR>> Date: Fri, 19 Sep 2008 22:49:45 +1000<BR>> Subject: RE: [Gate-users] Problem linking Gate & Root<BR>> <BR>> Hi Will<BR>> <BR>> Thanks for the info! That has solved my linking problem. Perhaps you would like to post a brief <BR>> note on the gate list, in case others like me strike the same hurdle?<BR>> <BR>> cheers,<BR>> erin<BR>> <BR>> <BR>> > Hi Erin,<BR>> > <BR>> > This is a linking problem - as you might recognise.<BR>> > <BR>> > It is fairly simple to solve: If you open the variables.gmk file and change the linking parameters <BR>> to:<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 += -L$(ROOTSYS)/lib \<BR>> > -lCore -lCint \<BR>> > -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad \<BR>> > -lTree -lRint -lPostscript \<BR>> > -lMatrix -lPhysics -lMathCore \<BR>> > -lThread -pthread -lm -ldl -rdynamic<BR>> > endif<BR>> > # EnfOf : Analysis Variables<BR>> > # --------------------------------------------------------------<BR>> > <BR>> > I hope that helps,<BR>> > <BR>> > Will<BR>> > > From: erin@computerhead.com.au> To: gate-users@lists.healthgrid.org> Date: Fri, 19 Sep <BR>> 2008 20:10:04 +1000> Subject: [Gate-users] Problem linking Gate & Root> > Another day, <BR>> another problem :-)> > I am trying to build GATE with the output modules for ROOT. I'm working <BR>> on a Core 2 duo Mac > running OS X 10.5 (Leopard) and gcc 4.0.1.> > I have tried both ROOT <BR>> version 5.18.00 and 5.20.00, built for the i386 architecture. Prior > versions of ROOT don't build <BR>> correctly on this system.> > GATE builds correctly if ROOTSYS is not defined. However, if <BR>> ROOTSYS is defined, I get the > following message from the linker:> > Linking Gate ...> <BR>> Undefined symbols:> "TFile::TFile(char const*, char const*, char const*, int)", referenced from:> <BR>> GateHitFileReader::PrepareAcquisition() in libGate.a(GateHitFileReader.o)> <BR>> GateToRoot::RecordVoxels(GateVGeometryVoxelStore*) in libGate.a(GateToRoot.o)> <BR>> GateToRoot::RecordBeginOfAcquisition() in libGate.a(GateToRoot.o)> <BR>> GateToRoot::RecordBeginOfAcquisition() in libGate.a(GateToRoot.o)> ld: symbol(s) not found> <BR>> collect2: ld returned 1 exit status> make: *** [bin/Darwin-g++/Gate] Error 1> > Can anyone <BR>> suggest how I might get past this?> > cheers,> -- > Erin McKay> Lead Programmer & Tea Boy> <BR>> Computerhead> > > > _______________________________________________> Gate-users <BR>> mailing list> Gate-users@lists.healthgrid.org> http://lists.healthgrid.org/mailman/listinfo/gate-<BR>> users<BR>> <BR>> <BR>> <BR>> -- <BR>> Erin McKay<BR>> Lead Programmer & Tea Boy<BR>> Computerhead<BR>> <BR>> <BR>> <BR></body>
</html>