| Summary: | Problem with Geant4 Configure | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | ppourrou |
| Component: | config | Assignee: | Serguei.Sadilov |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 6.0 | ||
| Hardware: | PC | ||
| OS: | Windows | ||
Also this problem seems related to the case of non-default compiler chosen in the installation. Also this problem seems related to the case of non-default compiler chosen in the installation. |
Installation of Geant4 6.0.p01 has been successful but when I try to run ./configure, I receive an error message : --- Geant4 Toolkit Installation --- WARNING: Geant4 is NOT installed yet! You (or the administrator if you have not enough privileges) should start with $G4INSTALL/Configure -install. (where $G4INSTALL is Geant4 install directory). I use Cygwin 1.5.18-1 with gcc version 3.4.4-1 and CLHEP 1.8.1.0. Furthermore I have a problem for compiling examples. For the first example I receive this error message : ../../../tmp//exampleN01/exe/exampleN01.o:exampleN01.cc:(.text+0x180): undefined reference to `G4RunManager::G4RunManager()' ../../../tmp//exampleN01/exe/exampleN01.o:exampleN01.cc:(.text+0x327): undefined reference to `G4UImanager::GetUIpointer()' ../../../tmp//exampleN01/exe/exampleN01.o:exampleN01.cc:(.text+0x33d): undefined reference to `G4UImanager::ApplyCommand(char const*)' ../../../tmp//exampleN01/exe/exampleN01.o:exampleN01.cc:(.text+0x350): undefined reference to `G4UImanager::ApplyCommand(char const*)' ../../../tmp//exampleN01/exe/exampleN01.o:exampleN01.cc:(.text+0x363): undefined reference to `G4UImanager::ApplyCommand(char const*)' ../../../tmp//exampleN01/exe/exampleN01.o:exampleN01.cc: (.text$_ZNK12G4VTouchable10GetHistoryEv[G4VTouchable::GetHistory() const] +0x26): undefined reference to `G4Exception(char const*, char const*, G4ExceptionSeverity, char const*)' ../../../tmp//exampleN01/exe/exampleN01.o:exampleN01.cc: (.text$_ZN12G4VTouchable14UpdateYourselfEP17G4VPhysicalVolumePK19G4NavigationHis tory[G4VTouchable::UpdateYourself(G4VPhysicalVolume*, G4NavigationHistory const*)]+0x26): undefined reference to `G4Exception(char const*, char const*, G4ExceptionSeverity, char const*)' ../../../tmp//exampleN01/exe/exampleN01.o:exampleN01.cc: (.text$_ZN12G4VTouchable13MoveUpHistoryEi[G4VTouchable::MoveUpHistory(int)] +0x26): undefined reference to `G4Exception(char const*, char const*, G4ExceptionSeverity, char const*)' ../../../tmp//exampleN01/exe/exampleN01.o:exampleN01.cc: (.text$_ZNK12G4VTouchable15GetHistoryDepthEv[G4VTouchable::GetHistoryDepth() const]+0x26): undefined reference to `G4Exception(char const*, char const*, G4ExceptionSeverity, char const*)' ../../../tmp//exampleN01/exe/exampleN01.o:exampleN01.cc: (.text$_ZNK12G4VTouchable16GetReplicaNumberEi[G4VTouchable::GetReplicaNumber (int) const]+0x26): undefined reference to `G4Exception(char const*, char const*, G4ExceptionSeverity, char const*)' ../../../tmp//exampleN01/exe/exampleN01.o:exampleN01.cc: (.text$_ZNK12G4VTouchable8GetSolidEi[G4VTouchable::GetSolid(int) const]+0x26): more undefined references to `G4Exception(char const*, char const*, G4ExceptionSeverity, char const*)' follow ../../../tmp//exampleN01/libexampleN01.a (ExN01PrimaryGeneratorAction.o):ExN01PrimaryGeneratorAction.cc:(.text+0x14c): undefined reference to `G4VUserPrimaryGeneratorAction::G4VUserPrimaryGeneratorAction()' ../../../tmp//exampleN01/libexampleN01.a (ExN01PrimaryGeneratorAction.o):ExN01PrimaryGeneratorAction.cc:(.text+0x1a0): undefined reference to `G4ParticleGun::G4ParticleGun(int)' ../../../tmp//exampleN01/libexampleN01.a (ExN01PrimaryGeneratorAction.o):ExN01PrimaryGeneratorAction.cc:(.text+0x1eb): undefined reference to `G4ParticleTable::GetParticleTable()' ../../../tmp//exampleN01/libexampleN01.a (ExN01PrimaryGeneratorAction.o):ExN01PrimaryGeneratorAction.cc:(.text+0x237): undefined reference to `G4ParticleGun::SetParticleDefinition (G4ParticleDefinition*)' ../../../tmp//exampleN01/libexampleN01.a (ExN01PrimaryGeneratorAction.o):ExN01PrimaryGeneratorAction.cc:(.text+0x32a): undefined reference to `G4VUserPrimaryGeneratorAction::~G4VUserPrimaryGeneratorAction()' ../../../tmp//exampleN01/libexampleN01.a (ExN01PrimaryGeneratorAction.o):ExN01PrimaryGeneratorAction.cc:(.text+0x3b8): undefined reference to `G4VUserPrimaryGeneratorAction::G4VUserPrimaryGeneratorAction()' ../../../tmp//exampleN01/libexampleN01.a (ExN01PrimaryGeneratorAction.o):ExN01PrimaryGeneratorAction.cc:(.text+0x40c): undefined reference to `G4ParticleGun::G4ParticleGun(int)' ../../../tmp//exampleN01/libexampleN01.a (ExN01PrimaryGeneratorAction.o):ExN01PrimaryGeneratorAction.cc:(.text+0x457): undefined reference to `G4ParticleTable::GetParticleTable()' ../../../tmp//exampleN01/libexampleN01.a (ExN01PrimaryGeneratorAction.o):ExN01PrimaryGeneratorAction.cc:(.text+0x4a3): undefined reference to `G4ParticleGun::SetParticleDefinition (G4ParticleDefinition*)' ../../../tmp//exampleN01/libexampleN01.a (ExN01PrimaryGeneratorAction.o):ExN01PrimaryGeneratorAction.cc:(.text+0x596): undefined reference to `G4VUserPrimaryGeneratorAction::~G4VUserPrimaryGeneratorAction()' ../../../tmp//exampleN01/libexampleN01.a (ExN01PrimaryGeneratorAction.o):ExN01PrimaryGeneratorAction.cc:(.text+0x65d): undefined reference to `G4VUserPrimaryGeneratorAction::~G4VUserPrimaryGeneratorAction()' ../../../tmp//exampleN01/libexampleN01.a (ExN01PrimaryGeneratorAction.o):ExN01PrimaryGeneratorAction.cc:(.text+0x687): undefined reference to `G4VUserPrimaryGeneratorAction::~G4VUserPrimaryGeneratorAction()' ../../../tmp//exampleN01/libexampleN01.a (ExN01PrimaryGeneratorAction.o):ExN01PrimaryGeneratorAction.cc:(.text+0x73b): undefined reference to `G4VUserPrimaryGeneratorAction::~G4VUserPrimaryGeneratorAction()' ../../../tmp//exampleN01/libexampleN01.a (ExN01PrimaryGeneratorAction.o):ExN01PrimaryGeneratorAction.cc:(.text+0x765): undefined reference to `G4VUserPrimaryGeneratorAction::~G4VUserPrimaryGeneratorAction()' ../../../tmp//exampleN01/libexampleN01.a (ExN01PrimaryGeneratorAction.o):ExN01PrimaryGeneratorAction.cc:(.text+0x819): more undefined references to `G4VUserPrimaryGeneratorAction::~G4VUserPrimaryGeneratorAction()' follow ../../../tmp//exampleN01/libexampleN01.a (ExN01PhysicsList.o):ExN01PhysicsList.cc:(.text+0x10d): undefined reference to `G4VUserPhysicsList::G4VUserPhysicsList()' ../../../tmp//exampleN01/libexampleN01.a (ExN01PhysicsList.o):ExN01PhysicsList.cc:(.text+0x129): undefined reference to `G4VUserPhysicsList::G4VUserPhysicsList()' ../../../tmp//exampleN01/libexampleN01.a (ExN01PhysicsList.o):ExN01PhysicsList.cc:(.text+0x14e): undefined reference to `G4VUserPhysicsList::~G4VUserPhysicsList()' ../../../tmp//exampleN01/libexampleN01.a (ExN01PhysicsList.o):ExN01PhysicsList.cc:(.text+0x182): undefined reference to `G4VUserPhysicsList::~G4VUserPhysicsList()' ../../../tmp//exampleN01/libexampleN01.a (ExN01PhysicsList.o):ExN01PhysicsList.cc:(.text+0x1b6): undefined reference to `G4VUserPhysicsList::~G4VUserPhysicsList()' ../../../tmp//exampleN01/libexampleN01.a (ExN01PhysicsList.o):ExN01PhysicsList.cc:(.text+0x1db): undefined reference to `G4Geantino::GeantinoDefinition()' ../../../tmp//exampleN01/libexampleN01.a (ExN01PhysicsList.o):ExN01PhysicsList.cc:(.text+0x1ef): undefined reference to `G4VUserPhysicsList::AddTransportation()' ../../../tmp//exampleN01/libexampleN01.a (ExN01PhysicsList.o):ExN01PhysicsList.cc:(.text+0x219): undefined reference to `G4VUserPhysicsList::SetVerboseLevel(int)' ../../../tmp//exampleN01/libexampleN01.a (ExN01PhysicsList.o):ExN01PhysicsList.cc:(.text+0x224): undefined reference to `G4VUserPhysicsList::SetCutsWithDefault()' ../../../tmp//exampleN01/libexampleN01.a (ExN01PhysicsList.o):ExN01PhysicsList.cc:(.text+0x236): undefined reference to `G4VUserPhysicsList::SetVerboseLevel(int)' ../../../tmp//exampleN01/libexampleN01.a (ExN01PhysicsList.o):ExN01PhysicsList.cc:(.rdata$_ZTV16ExN01PhysicsList[vtable for ExN01PhysicsList]+0x1c): undefined reference to `G4VUserPhysicsList::RetrievePhysicsTable(G4ParticleDefinition*, G4String const&, bool)' ../../../tmp//exampleN01/libexampleN01.a (ExN01DetectorConstruction.o):ExN01DetectorConstruction.cc:(.text+0x10d): undefined reference to `G4VUserDetectorConstruction::G4VUserDetectorConstruction ()' ../../../tmp//exampleN01/libexampleN01.a (ExN01DetectorConstruction.o):ExN01DetectorConstruction.cc:(.text+0x179): undefined reference to `G4VUserDetectorConstruction::G4VUserDetectorConstruction ()' ../../../tmp//exampleN01/libexampleN01.a (ExN01DetectorConstruction.o):ExN01DetectorConstruction.cc:(.text+0x1ee): undefined reference to `G4VUserDetectorConstruction::~G4VUserDetectorConstruction()' ../../../tmp//exampleN01/libexampleN01.a (ExN01DetectorConstruction.o):ExN01DetectorConstruction.cc:(.text+0x222): undefined reference to `G4VUserDetectorConstruction::~G4VUserDetectorConstruction()' ../../../tmp//exampleN01/libexampleN01.a (ExN01DetectorConstruction.o):ExN01DetectorConstruction.cc:(.text+0x256): undefined reference to `G4VUserDetectorConstruction::~G4VUserDetectorConstruction()' ../../../tmp//exampleN01/libexampleN01.a (ExN01DetectorConstruction.o):ExN01DetectorConstruction.cc:(.text+0x37f): undefined reference to `G4Material::G4Material(G4String const&, double, double, double, G4State, double, double)' ../../../tmp//exampleN01/libexampleN01.a (ExN01DetectorConstruction.o):ExN01DetectorConstruction.cc:(.text+0x4cf): undefined reference to `G4Material::G4Material(G4String const&, double, double, double, G4State, double, double)' ../../../tmp//exampleN01/libexampleN01.a (ExN01DetectorConstruction.o):ExN01DetectorConstruction.cc:(.text+0x61f): undefined reference to `G4Material::G4Material(G4String const&, double, double, double, G4State, double, double)' ../../../tmp//exampleN01/libexampleN01.a (ExN01DetectorConstruction.o):ExN01DetectorConstruction.cc:(.text+0x738): undefined reference to `G4Box::G4Box(G4String const&, double, double, double)' ../../../tmp//exampleN01/libexampleN01.a (ExN01DetectorConstruction.o):ExN01DetectorConstruction.cc:(.text+0x858): undefined reference to `G4LogicalVolume::G4LogicalVolume(G4VSolid*, G4Material*, G4String const&, G4FieldManager*, G4VSensitiveDetector*, G4UserLimits*, bool)' ../../../tmp//exampleN01/libexampleN01.a (ExN01DetectorConstruction.o):ExN01DetectorConstruction.cc:(.text+0x9ba): undefined reference to `G4PVPlacement::G4PVPlacement(HepRotation*, Hep3Vector const&, G4LogicalVolume*, G4String const&, G4LogicalVolume*, bool, int)' ../../../tmp//exampleN01/libexampleN01.a (ExN01DetectorConstruction.o):ExN01DetectorConstruction.cc:(.text+0xb51): undefined reference to `G4Tubs::G4Tubs(G4String const&, double, double, double, double, double)' ../../../tmp//exampleN01/libexampleN01.a (ExN01DetectorConstruction.o):ExN01DetectorConstruction.cc:(.text+0xc77): undefined reference to `G4LogicalVolume::G4LogicalVolume(G4VSolid*, G4Material*, G4String const&, G4FieldManager*, G4VSensitiveDetector*, G4UserLimits*, bool)' ../../../tmp//exampleN01/libexampleN01.a (ExN01DetectorConstruction.o):ExN01DetectorConstruction.cc:(.text+0xe03): undefined reference to `G4PVPlacement::G4PVPlacement(HepRotation*, Hep3Vector const&, G4LogicalVolume*, G4String const&, G4LogicalVolume*, bool, int)' ../../../tmp//exampleN01/libexampleN01.a (ExN01DetectorConstruction.o):ExN01DetectorConstruction.cc:(.text+0xf76): undefined reference to `G4Box::G4Box(G4String const&, double, double, double)' ../../../tmp//exampleN01/libexampleN01.a (ExN01DetectorConstruction.o):ExN01DetectorConstruction.cc:(.text+0x109c): undefined reference to `G4LogicalVolume::G4LogicalVolume(G4VSolid*, G4Material*, G4String const&, G4FieldManager*, G4VSensitiveDetector*, G4UserLimits*, bool)' ../../../tmp//exampleN01/libexampleN01.a (ExN01DetectorConstruction.o):ExN01DetectorConstruction.cc:(.text+0x1228): undefined reference to `G4PVPlacement::G4PVPlacement(HepRotation*, Hep3Vector const&, G4LogicalVolume*, G4String const&, G4LogicalVolume*, bool, int)' ../../../tmp//exampleN01/libexampleN01.a (ExN01DetectorConstruction.o):ExN01DetectorConstruction.cc:(.text+0x139b): undefined reference to `G4Box::G4Box(G4String const&, double, double, double)' ../../../tmp//exampleN01/libexampleN01.a (ExN01DetectorConstruction.o):ExN01DetectorConstruction.cc:(.text+0x14c1): undefined reference to `G4LogicalVolume::G4LogicalVolume(G4VSolid*, G4Material*, G4String const&, G4FieldManager*, G4VSensitiveDetector*, G4UserLimits*, bool)' ../../../tmp//exampleN01/libexampleN01.a (ExN01DetectorConstruction.o):ExN01DetectorConstruction.cc:(.text+0x1681): undefined reference to `G4PVPlacement::G4PVPlacement(HepRotation*, Hep3Vector const&, G4LogicalVolume*, G4String const&, G4LogicalVolume*, bool, int)' collect2: ld returned 1 exit status make: *** [../../../bin//exampleN01] Error 1 My CLHEP installation seems to be right. Thanks in advance, Pierre.