[Gate-users] Problem linking Gate & Root

Erin McKay erin at computerhead.com.au
Fri Sep 19 12:10:04 CEST 2008


Another day, another problem :-)

I am trying to build GATE with the output modules for ROOT. I'm working on a Core 2 duo Mac 
running OS X 10.5 (Leopard) and gcc 4.0.1.

I have tried both ROOT version 5.18.00 and 5.20.00, built for the i386 architecture. Prior 
versions of ROOT don't build correctly on this system.

GATE builds correctly if ROOTSYS is not defined. However, if ROOTSYS is defined, I get the 
following message from the linker:

Linking Gate ...
Undefined symbols:
  "TFile::TFile(char const*, char const*, char const*, int)", referenced from:
      GateHitFileReader::PrepareAcquisition()       in libGate.a(GateHitFileReader.o)
      GateToRoot::RecordVoxels(GateVGeometryVoxelStore*)        in libGate.a(GateToRoot.o)
      GateToRoot::RecordBeginOfAcquisition()       in libGate.a(GateToRoot.o)
      GateToRoot::RecordBeginOfAcquisition()       in libGate.a(GateToRoot.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [bin/Darwin-g++/Gate] Error 1

Can anyone suggest how I might get past this?

cheers,
-- 
Erin McKay
Lead Programmer & Tea Boy
Computerhead






More information about the Gate-users mailing list