Message: error for running example N02 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question error for running example N02 

Forum: Run Management
Date: 09 Feb, 2006
From: ozkansahin <ozkansahin>

 i am new user for geant4.7.1. when i run the exampleN02 i faced an error like this

localhost] /home/osahin/geant4/geant4.7.1/examples/novice/N02 > gmake Creating shared library /home/osahin/geant4/tmp/Linux-g++/exampleN02/libexampleN02.so ... ExN02DetectorConstruction.o(.text+0x0): In function `ExN02DetectorConstruction::ExN02DetectorConstruction()': src/ExN02DetectorConstruction.cc:53: multiple definition of `ExN02DetectorConstruction::ExN02DetectorConstruction()' ExN02DetectorConstructioneski.o(.text+0x0):src/ExN02DetectorConstructioneski.cc:53: first defined here ExN02DetectorConstruction.o(.text+0x22a): In function `ExN02DetectorConstruction::ExN02DetectorConstruction()': src/ExN02DetectorConstruction.cc:53: multiple definition of `ExN02DetectorConstruction::ExN02DetectorConstruction()' ExN02DetectorConstructioneski.o(.text+0x22a):src/ExN02DetectorConstructioneski.cc:53: first defined here ExN02DetectorConstruction.o(.text+0x454): In function `ExN02DetectorConstruction::~ExN02DetectorConstruction()': src/ExN02DetectorConstruction.cc:68: multiple definition of `ExN02DetectorConstruction::~ExN02DetectorConstruction()' ExN02DetectorConstructioneski.o(.text+0x454):src/ExN02DetectorConstructioneski.cc:68: first defined here ExN02DetectorConstruction.o(.text+0x4ea): In function `ExN02DetectorConstruction::~ExN02DetectorConstruction()': src/ExN02DetectorConstruction.cc:68: multiple definition of `ExN02DetectorConstruction::~ExN02DetectorConstruction()' ExN02DetectorConstructioneski.o(.text+0x4ea):src/ExN02DetectorConstructioneski.cc:68: first defined here ExN02DetectorConstruction.o(.text+0x580): In function `ExN02DetectorConstruction::~ExN02DetectorConstruction()': src/ExN02DetectorConstruction.cc:68: multiple definition of `ExN02DetectorConstruction::~ExN02DetectorConstruction()' ExN02DetectorConstructioneski.o(.text+0x580):src/ExN02DetectorConstructioneski.cc:68: first defined here ExN02DetectorConstruction.o(.text+0x616): In function `ExN02DetectorConstruction::Construct()': src/ExN02DetectorConstruction.cc:76: multiple definition of `ExN02DetectorConstruction::Construct()' ExN02DetectorConstructioneski.o(.text+0x616):src/ExN02DetectorConstructioneski.cc:76: first defined here ExN02DetectorConstruction.o(.text+0x2244): In function `ExN02DetectorConstruction::setTargetMaterial(G4String)': src/ExN02DetectorConstruction.cc:259: multiple definition of `ExN02DetectorConstruction::setTargetMaterial(G4String)' ExN02DetectorConstructioneski.o(.text+0x2244):src/ExN02DetectorConstructioneski.cc:259: first defined here ExN02DetectorConstruction.o(.text+0x2352): In function `ExN02DetectorConstruction::setChamberMaterial(G4String)': src/ExN02DetectorConstruction.cc:273: multiple definition of `ExN02DetectorConstruction::setChamberMaterial(G4String)' ExN02DetectorConstructioneski.o(.text+0x2352):src/ExN02DetectorConstructioneski.cc:273: first defined here ExN02DetectorConstruction.o(.text+0x2460): In function `ExN02DetectorConstruction::SetMagField(double)': src/ExN02DetectorConstruction.cc:287: multiple definition of `ExN02DetectorConstruction::SetMagField(double)' ExN02DetectorConstructioneski.o(.text+0x2460):src/ExN02DetectorConstructioneski.cc:287: first defined here

collect2: ld returned 1 exit status
gmake: *** [/home/osahin/geant4/tmp/Linux-g++/exampleN02/libexampleN02.so] Error 1
[localhost] /home/osahin/geant4/geant4.7.1/examples/novice/N02 > gmake Making dependency for file src/ExN02DetectorConstruction.cc ... Compiling ExN02DetectorConstruction.cc ... Creating shared library /home/osahin/geant4/tmp/Linux-g++/exampleN02/libexampleN02.so ... Creating/replacing object files in /home/osahin/geant4/tmp/Linux-g++/exampleN02/libexampleN02.a ... Using granular libraries ... Linking exampleN02 ... [localhost] /home/osahin/geant4/geant4.7.1/examples/novice/N02 > gmake Making dependency for file src/ExN02DetectorConstruction.cc ... Compiling ExN02DetectorConstruction.cc ... Creating shared library /home/osahin/geant4/tmp/Linux-g++/exampleN02/libexampleN02.so ... ExN02DetectorConstruction.o(.text+0x0): In function `ExN02DetectorConstruction::ExN02DetectorConstruction()': src/ExN02DetectorConstruction.cc:53: multiple definition of `ExN02DetectorConstruction::ExN02DetectorConstruction()' ExN02DetectorConstructioneski.o(.text+0x0):src/ExN02DetectorConstructioneski.cc:53: first defined here ExN02DetectorConstruction.o(.text+0x22a): In function `ExN02DetectorConstruction::ExN02DetectorConstruction()': src/ExN02DetectorConstruction.cc:53: multiple definition of `ExN02DetectorConstruction::ExN02DetectorConstruction()' ExN02DetectorConstructioneski.o(.text+0x22a):src/ExN02DetectorConstructioneski.cc:53: first defined here ExN02DetectorConstruction.o(.text+0x454): In function `ExN02DetectorConstruction::~ExN02DetectorConstruction()': src/ExN02DetectorConstruction.cc:68: multiple definition of `ExN02DetectorConstruction::~ExN02DetectorConstruction()' ExN02DetectorConstructioneski.o(.text+0x454):src/ExN02DetectorConstructioneski.cc:68: first defined here ExN02DetectorConstruction.o(.text+0x4ea): In function `ExN02DetectorConstruction::~ExN02DetectorConstruction()': src/ExN02DetectorConstruction.cc:68: multiple definition of `ExN02DetectorConstruction::~ExN02DetectorConstruction()' ExN02DetectorConstructioneski.o(.text+0x4ea):src/ExN02DetectorConstructioneski.cc:68: first defined here ExN02DetectorConstruction.o(.text+0x580): In function `ExN02DetectorConstruction::~ExN02DetectorConstruction()': src/ExN02DetectorConstruction.cc:68: multiple definition of `ExN02DetectorConstruction::~ExN02DetectorConstruction()' ExN02DetectorConstructioneski.o(.text+0x580):src/ExN02DetectorConstructioneski.cc:68: first defined here ExN02DetectorConstruction.o(.text+0x616): In function `ExN02DetectorConstruction::Construct()': src/ExN02DetectorConstruction.cc:76: multiple definition of `ExN02DetectorConstruction::Construct()' ExN02DetectorConstructioneski.o(.text+0x616):src/ExN02DetectorConstructioneski.cc:76: first defined here ExN02DetectorConstruction.o(.text+0x2244): In function `ExN02DetectorConstruction::setTargetMaterial(G4String)': src/ExN02DetectorConstruction.cc:259: multiple definition of `ExN02DetectorConstruction::setTargetMaterial(G4String)' ExN02DetectorConstructioneski.o(.text+0x2244):src/ExN02DetectorConstructioneski.cc:259: first defined here ExN02DetectorConstruction.o(.text+0x2352): In function `ExN02DetectorConstruction::setChamberMaterial(G4String)': src/ExN02DetectorConstruction.cc:273: multiple definition of `ExN02DetectorConstruction::setChamberMaterial(G4String)' ExN02DetectorConstructioneski.o(.text+0x2352):src/ExN02DetectorConstructioneski.cc:273: first defined here ExN02DetectorConstruction.o(.text+0x2460): In function `ExN02DetectorConstruction::SetMagField(double)': src/ExN02DetectorConstruction.cc:287: multiple definition of `ExN02DetectorConstruction::SetMagField(double)' ExN02DetectorConstructioneski.o(.text+0x2460):src/ExN02DetectorConstructioneski.cc:287: first defined here
collect2: ld returned 1 exit status
gmake: *** [/home/osahin/geant4/tmp/Linux-g++/exampleN02/libexampleN02.so] Error 1
[localhost] /home/osahin/geant4/geant4.7.1/examples/novice/N02 >

could anyone help me where i am wrong..

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

1 Question: Re: error for running example N02   (Gabriele Cosmo - 05 Mar, 2006)
 Add Message Add Message
to: "error for running example N02"

 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 ]