Message: Using a new Library Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Using a new Library 

Keywords: new library
Forum: Fast Simulation, Transportation & Others
Date: 13 Jul, 2007
From: <>

Hello !

I am newbie with both Geant4 and C++. I have to use a certain library (for cold neutrons) that is not among the basics. I did two things

- I called the header files of the library in my /src/ - I changed the binmake.gmk to binmake2.gmk and added the header's location to the flags.

But when I try to define the processes contained in the header files for my neutron ( in void NeuTransPhysicsList::ConstructProcess() ) with

    G4ParticleDefinition* particle = G4Neutron::NeutronDefinition();
    G4ProcessManager* pmanager = particle->GetProcessManager();
    pmanager->AddProcess(new UCNTransportation, 	-1,1,1);

the compiler doesn't want to and answers:

/home/local1/geant4/work/tmp/Linux-g++/neuTrans/libneuTrans.a (NeuTransPhysicsList.o)(.text+0x36d): In function `NeuTransPhysicsList::ConstructProcess()': src/ undefined reference to `UCNTransportation::UCNTransportation(int)'

What should I do ?

Could someone help me ? Thank you very much.

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

 Add Message Add Message
to: "Using a new Library"

 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 ]