Message: Geant 4.5.2 on Solaris 9 (CC 5.5) link error. Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Geant 4.5.2 on Solaris 9 (CC 5.5) link error. 

Forum: Documentation and Examples
Date: 20 Aug, 2003
From: <gezellig69@excite.com>

Hello,

After installing Geant 4.5.2 on Solaris 9 (CC 5.5) without any errors (apparently), I tried compiling
example N01.  I get the following error during linking:

Linking exampleN01 ...
Undefined                       first referenced
 symbol                             in file
G4Tubs::G4Tubs(const G4String&,double,double,double,double,double) /cern/geant4/tmp/SUN-CC/exampleN01/libexampleN01.a(ExN01DetectorConstruction.o)
G4Box::G4Box(const G4String&,double,double,double)   /cern/geant4/tmp/SUN-CC/exampleN01/libexampleN01.a(ExN01DetectorConstruction.o)
G4ParticleGun::G4ParticleGun(int)          /cern/geant4/tmp/SUN-CC/exampleN01/libexampleN01.a(ExN01PrimaryGeneratorAction.o)
G4VUserPrimaryGeneratorAction::~G4VUserPrimaryGeneratorAction #Nvariant 1() /cern/geant4/tmp/SUN-CC/exampleN01/libexampleN01.a(ExN01PrimaryGeneratorAction.o)
void G4VUserPhysicsList::SetCutsWithDefault() /cern/geant4/tmp/SUN-CC/exampleN01/libexampleN01.a(ExN01PhysicsList.o)
G4Material::G4Material(const G4String&,double,double,double,G4State,double,double) /cern/geant4/tmp/SUN-CC/exampleN01/libexampleN01.a(ExN01DetectorConstruction.o)
G4cout                              /cern/geant4/tmp/SUN-CC/exampleN01/libexampleN01.a(ExN01PhysicsList.o)
G4LogicalVolume::G4LogicalVolume(G4VSolid*,G4Material*,const G4String&,G4FieldManager*,G4VSensitiveDetector*,G4UserLimits*,bool) /cern/geant4/tmp/SUN-CC/exampleN01/libexampleN01.a(ExN01DetectorConstruction.o)
G4VUserDetectorConstruction::G4VUserDetectorConstruction #Nvariant 1() /cern/geant4/tmp/SUN-CC/exampleN01/libexampleN01.a(ExN01DetectorConstruction.o)
G4VUserPhysicsList::G4VUserPhysicsList #Nvariant 1()    /cern/geant4/tmp/SUN-CC/exampleN01/libexampleN01.a(ExN01PhysicsList.o)
G4UImanager*G4UImanager::GetUIpointer() /cern/geant4/tmp/SUN-CC/exampleN01/exe/exampleN01.o
G4ParticleTable*G4ParticleTable::GetParticleTable() /cern/geant4/tmp/SUN-CC/exampleN01/libexampleN01.a(ExN01PrimaryGeneratorAction.o)
void G4VUserPhysicsList::AddTransportation() /cern/geant4/tmp/SUN-CC/exampleN01/libexampleN01.a(ExN01PhysicsList.o)
G4Geantino*G4Geantino::GeantinoDefinition() /cern/geant4/tmp/SUN-CC/exampleN01/libexampleN01.a(ExN01PhysicsList.o)
G4RunManager::G4RunManager()            /cern/geant4/tmp/SUN-CC/exampleN01/exe/exampleN01.o
G4RunManager::~G4RunManager()            /cern/geant4/tmp/SUN-CC/exampleN01/exe/exampleN01.o
int G4UImanager::ApplyCommand(const char*) /cern/geant4/tmp/SUN-CC/exampleN01/exe/exampleN01.o
void G4VUserPhysicsList::RetrievePhysicsTable(G4ParticleDefinition*,const G4String&,bool) /cern/geant4/tmp/SUN-CC/exampleN01/libexampleN01.a(ExN01PhysicsList.o)
G4VUserPhysicsList::~G4VUserPhysicsList #Nvariant 1()    /cern/geant4/tmp/SUN-CC/exampleN01/libexampleN01.a(ExN01PhysicsList.o)
G4ParticleGun::~G4ParticleGun()           /cern/geant4/tmp/SUN-CC/exampleN01/libexampleN01.a(ExN01PrimaryGeneratorAction.o)
G4VUserPrimaryGeneratorAction::G4VUserPrimaryGeneratorAction #Nvariant 1() /cern/geant4/tmp/SUN-CC/exampleN01/libexampleN01.a(ExN01PrimaryGeneratorAction.o)
G4VUserDetectorConstruction::~G4VUserDetectorConstruction #Nvariant 1() /cern/geant4/tmp/SUN-CC/exampleN01/libexampleN01.a(ExN01DetectorConstruction.o)
void G4ParticleGun::SetParticleDefinition(G4ParticleDefinition*) /cern/geant4/tmp/SUN-CC/exampleN01/libexampleN01.a(ExN01PrimaryGeneratorAction.o)
G4PVPlacement::G4PVPlacement(HepRotation*,const Hep3Vector&,G4LogicalVolume*,const G4String&,G4LogicalVolume*,bool,int) /cern/geant4/tmp/SUN-CC/exampleN01/libexampleN01.a(ExN01DetectorConstruction.o)
ld: fatal: Symbol referencing errors. No output written to /cern/geant4/bin/SUN-CC/exampleN01
gmake: *** [/cern/geant4/bin/SUN-CC/exampleN01] Error 1


I've tried "-z nodefs", and other options, but the error remains.  Is there any special LDFLAGS needed that I'm not aware of?
Thanks in advance,

Ivan

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Feedback: .../config/common.gmk : g++ $(GPPFLAGS) $(CPPFLAGS) -w : MAKING .d FILES   (gezellig69@excite.com - 23 Aug, 2003)
2 Feedback: Geant 4.5.2 on Solaris 9 (CC 5.5) working.   (gezellig69@excite.com - 24 Aug, 2003)
 Add Message Add Message
to: "Geant 4.5.2 on Solaris 9 (CC 5.5) link error."

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]