Problem 563

Summary: Errors linking A01 from IEEE NIS-MIC workshop
Product: Examples/Extended Reporter: clair
Component: analysis/A0Assignee: perl
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 5.2   
Hardware: PC   
OS: Linux   

Description clair 2004-01-09 15:22:36 CET
Hi.

I am running Debian Linux with gcc 2.95.4.  Geant 4.5.2 compiled just fine for
me with no errors.  So I went to compile Example A01 from this workshop and got
several errors in the linking process.  At the bottom of this message are just
the first few lines (although I could send you the entire output if you
like...but it is rather lengthy).

Any suggestions?

Thanks!

-clair

--------------------------------------
Linking A01app ...
/home/clair/geant/geant4.5.2.p02//lib/Linux-g++/libG4csg.a(G4Box.o): In function
`G4Box::CalculateExtent(EAxis, G4VoxelLimits const &, G4AffineTransform const &,
double &, double &) const':
G4Box.o(.text+0x1105): undefined reference to
`G4VSolid::ClipCrossSection(vector<Hep3Vector, allocator<Hep3Vector> > *, int,
G4VoxelLimits const &, EAxis, double &, double &) const'
G4Box.o(.text+0x1127): undefined reference to
`G4VSolid::ClipCrossSection(vector<Hep3Vector, allocator<Hep3Vector> > *, int,
G4VoxelLimits const &, EAxis, double &, double &) const'
G4Box.o(.text+0x1149): undefined reference to
`G4VSolid::ClipBetweenSections(vector<Hep3Vector, allocator<Hep3Vector> > *,
int, G4VoxelLimits const &, EAxis, double &, double &) const'
/home/clair/geant/geant4.5.2.p02//lib/Linux-g++/libG4csg.a(G4Box.o)(.gnu.linkonce.d.__vt_5G4Box+0x44):
undefined reference to `G4VSolid::GetConstituentSolid(int) const'
/home/clair/geant/geant4.5.2.p02//lib/Linux-g++/libG4csg.a(G4Box.o)(.gnu.linkonce.d.__vt_5G4Box+0x48):
undefined reference to `G4VSolid::GetConstituentSolid(int)'
/home/clair/geant/geant4.5.2.p02//lib/Linux-g++/libG4csg.a(G4Box.o)(.gnu.linkonce.d.__vt_5G4Box+0x4c):
undefined reference to `G4VSolid::GetDisplacedSolidPtr(void) const'
/home/clair/geant/geant4.5.2.p02//lib/Linux-g++/libG4csg.a(G4Box.o)(.gnu.linkonce.d.__vt_5G4Box+0x50):
undefined reference to `G4VSolid::GetDisplacedSolidPtr(void)'
/home/clair/geant/geant4.5.2.p02//lib/Linux-g++/libG4csg.a(G4CSGSolid.o): In
function `G4CSGSolid::G4CSGSolid(G4String const &)':
G4CSGSolid.o(.text+0x12): undefined reference to `G4VSolid::G4VSolid(G4String
const &)'
/home/clair/geant/geant4.5.2.p02//lib/Linux-g++/libG4csg.a(G4CSGSolid.o): In
function `G4CSGSolid::~G4CSGSolid(void)':
G4CSGSolid.o(.text+0x3d): undefined reference to `G4VSolid::~G4VSolid(void)'
/home/clair/geant/geant4.5.2.p02//lib/Linux-g++/libG4csg.a(G4CSGSolid.o)(.gnu.linkonce.d.__vt_10G4CSGSolid+0x28):
undefined reference to `G4VSolid::ComputeDimensions(G4VPVParameterisation *,
int, G4VPhysicalVolume const *)'
/home/clair/geant/geant4.5.2.p02//lib/Linux-g++/libG4csg.a(G4CSGSolid.o)(.gnu.linkonce.d.__vt_10G4CSGSolid+0x38):
undefined reference to `G4VSolid::GetExtent(void) const'
/home/clair/geant/geant4.5.2.p02//lib/Linux-g++/libG4csg.a(G4CSGSolid.o)(.gnu.linkonce.d.__vt_10G4CSGSolid+0x3c):
undefined reference to `G4VSolid::CreatePolyhedron(void) const'
/home/clair/geant/geant4.5.2.p02//lib/Linux-g++/libG4csg.a(G4CSGSolid.o)(.gnu.linkonce.d.__vt_10G4CSGSolid+0x40):
undefined reference to `G4VSolid::CreateNURBS(void) const'
/home/clair/geant/geant4.5.2.p02//lib/Linux-g++/libG4csg.a(G4CSGSolid.o)(.gnu.linkonce.d.__vt_10G4CSGSolid+0x44):
undefined reference to `G4VSolid::GetConstituentSolid(int) const'
/home/clair/geant/geant4.5.2.p02//lib/Linux-g++/libG4csg.a(G4CSGSolid.o)(.gnu.linkonce.d.__vt_10G4CSGSolid+0x48):
undefined reference to `G4VSolid::GetConstituentSolid(int)'
/home/clair/geant/geant4.5.2.p02//lib/Linux-g++/libG4csg.a(G4CSGSolid.o)(.gnu.linkonce.d.__vt_10G4CSGSolid+0x4c):
undefined reference to `G4VSolid::GetDisplacedSolidPtr(void) const'
/home/clair/geant/geant4.5.2.p02//lib/Linux-g++/libG4csg.a(G4CSGSolid.o)(.gnu.linkonce.d.__vt_10G4CSGSolid+0x50):
undefined reference to `G4VSolid::GetDisplacedSolidPtr(void)'
/home/clair/geant/geant4.5.2.p02//lib/Linux-g++/libG4csg.a(G4CSGSolid.o): In
function `G4CSGSolid type_info function':
G4CSGSolid.o(.gnu.linkonce.t.__tf10G4CSGSolid+0x10): undefined reference to
`G4VSolid type_info function'
G4CSGSolid.o(.gnu.linkonce.t.__tf10G4CSGSolid+0x18): undefined reference to
`G4VSolid type_info node'
/home/clair/geant/geant4.5.2.p02//lib/Linux-g++/libG4csg.a(G4Tubs.o): In
function `G4Tubs::CalculateExtent(EAxis, G4VoxelLimits const &,
G4AffineTransform const &, double &, double &) const':
G4Tubs.o(.text+0x1161): undefined reference to
`G4VSolid::ClipCrossSection(vector<Hep3Vector, allocator<Hep3Vector> > *, int,
G4VoxelLimits const &, EAxis, double &, double &) const'
G4Tubs.o(.text+0x11a0): undefined reference to
`G4VSolid::ClipBetweenSections(vector<Hep3Vector, allocator<Hep3Vector> > *,
int, G4VoxelLimits const &, EAxis, double &, double &) const'
/home/clair/geant/geant4.5.2.p02//lib/Linux-g++/libG4csg.a(G4Tubs.o)(.gnu.linkonce.d.__vt_6G4Tubs+0x38):
undefined reference to `G4VSolid::GetExtent(void) const'
/home/clair/geant/geant4.5.2.p02//lib/Linux-g++/libG4csg.a(G4Tubs.o)(.gnu.linkonce.d.__vt_6G4Tubs+0x44):
undefined reference to `G4VSolid::GetConstituentSolid(int) const'
/home/clair/geant/geant4.5.2.p02//lib/Linux-g++/libG4csg.a(G4Tubs.o)(.gnu.linkonce.d.__vt_6G4Tubs+0x48):
undefined reference to `G4VSolid::GetConstituentSolid(int)'
/home/clair/geant/geant4.5.2.p02//lib/Linux-g++/libG4csg.a(G4Tubs.o)(.gnu.linkonce.d.__vt_6G4Tubs+0x4c):
undefined reference to `G4VSolid::GetDisplacedSolidPtr(void) const'
/home/clair/geant/geant4.5.2.p02//lib/Linux-g++/libG4csg.a(G4Tubs.o)(.gnu.linkonce.d.__vt_6G4Tubs+0x50):
undefined reference to `G4VSolid::GetDisplacedSolidPtr(void)'
/home/clair/geant/geant4.5.2.p02//lib/Linux-g++/libG4volumes.a(G4GeometryMessenger.o):
In function `G4GeometryMessenger::~G4GeometryMessenger(void)':
G4GeometryMessenger.o(.text+0x8ed7): undefined reference to
`G4GeomTestVolume::~G4GeomTestVolume(void)'
.
.
.
(It keeps going for a while...)
Comment 1 perl 2004-03-03 16:56:59 CET
The SLAC team has just released a new installation CD for G4.6.0p01.
Please try the instructions there.
http://geant4.slac.stanford.edu/g4cd/March2004/Welcome.html