Message: linking error Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question linking error 

Forum: Documentation and Examples
Date: 14 May, 2012
From: Alexander Chemey <Alexander Chemey>

"radioxe" is the prefix for all of my G4 files. After making clean, the following happens:

<hake:radioxe >make Making dependency for file radioxe.cc ...

Making dependency for file src/radioxeVisManager.cc ...

Making dependency for file src/radioxeTrackingAction.cc ...

Making dependency for file src/radioxeTrackInformation.cc ...

Making dependency for file src/radioxeSteppingAction.cc ...

Making dependency for file src/radioxeRunAction.cc ...

Making dependency for file src/radioxePrimaryGeneratorAction.cc ...

... (lots of boring stuff)

Creating/replacing object files in /user/chemey/geant4/tmp/Linux-g++/radioxe/libradioxe.a ...

ar: creating /user/chemey/geant4/tmp/Linux-g++/radioxe/libradioxe.a

Compiling radioxe.cc ...

In file included from radioxe.cc:26:

/soft/x86_64/lucid/GEANT4/geant4.9.3.p01/include/G4RunManager.hh: In member function 'void G4RunManager::SetRandomNumberStoreDir(G4String)':

/soft/x86_64/lucid/GEANT4/geant4.9.3.p01/include/G4RunManager.hh:352: warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result

Using granular libraries ...

Linking radioxe

/user/chemey/geant4/tmp/Linux-g++/radioxe/libradioxe.a(radioxeAnalysisExample.o): In function `radioxeAnalysisExample::radioxeAnalysisExample()': radioxeAnalysisExample.cc:(.text+0x747): undefined reference to `radioxeAnalysisExampleMessenger::radioxeAnalysisExampleMessenger(radioxeAnalysisExample*)'

/user/chemey/geant4/tmp/Linux-g++/radioxe/libradioxe.a(radioxeAnalysisExample.o): In function `radioxeAnalysisExample::radioxeAnalysisExample()': radioxeAnalysisExample.cc:(.text+0x957): undefined reference to `radioxeAnalysisExampleMessenger::radioxeAnalysisExampleMessenger(radioxeAnalysisExample*)'

collect2: ld returned 1 exit status

make: *** [/user/chemey/geant4/bin/Linux-g++/radioxe] Error 1

Ideas? I've hit a brick wall before I can continue. I am using geant4.9.3.p01

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

1 None: Re: linking error   (Ivana Hrivnacova - 24 Jul, 2012)
 Add Message Add Message
to: "linking 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 ]