mctools / ncrystal

NCrystal : a library for thermal neutron transport in crystals and other materials
https://mctools.github.io/ncrystal/
Other
41 stars 18 forks source link

Geant4 compilation error #64

Closed rahulm41 closed 3 years ago

rahulm41 commented 3 years ago

I am facing errors 'undefined references to '. All functions in the source files are perfectly defined. please help me out in solving the issue?

CMakeFiles/cyliSD.dir/src/ExN01PhysicsList.cc.o: In function ExN01PhysicsList::ConstructEM()': ExN01PhysicsList.cc:(.text+0x32a): undefined reference toG4LowEnergyCompton::G4LowEnergyCompton(G4String const&)' ExN01PhysicsList.cc:(.text+0x379): undefined reference to G4LowEnergyPhotoElectric::G4LowEnergyPhotoElectric(G4String const&)' ExN01PhysicsList.cc:(.text+0x3ae): undefined reference toG4LowEnergyPhotoElectric::ActivateAuger(bool)' ExN01PhysicsList.cc:(.text+0x3da): undefined reference to G4LowEnergyPhotoElectric::SetCutForLowEnSecPhotons(double)' ExN01PhysicsList.cc:(.text+0x406): undefined reference toG4LowEnergyPhotoElectric::SetCutForLowEnSecElectrons(double)' ExN01PhysicsList.cc:(.text+0x457): undefined reference to G4LowEnergyRayleigh::G4LowEnergyRayleigh(G4String const&)' ExN01PhysicsList.cc:(.text+0x520): undefined reference toG4LowEnergyIonisation::G4LowEnergyIonisation(G4String const&)' ExN01PhysicsList.cc:(.text+0x54f): undefined reference to G4LowEnergyIonisation::ActivateAuger(bool)' ExN01PhysicsList.cc:(.text+0x578): undefined reference toG4LowEnergyIonisation::SetCutForLowEnSecPhotons(double)' ExN01PhysicsList.cc:(.text+0x5a1): undefined reference to G4LowEnergyIonisation::SetCutForLowEnSecElectrons(double)' ExN01PhysicsList.cc:(.text+0x5f7): undefined reference toG4LowEnergyBremsstrahlung::G4LowEnergyBremsstrahlung(G4String const&)' ExN01PhysicsList.cc:(.text+0x920): undefined reference to G4hLowEnergyIonisation::G4hLowEnergyIonisation(G4String const&)' ExN01PhysicsList.cc:(.text+0xa64): undefined reference toG4hLowEnergyIonisation::G4hLowEnergyIonisation(G4String const&)' collect2: error: ld returned 1 exit status CMakeFiles/cyliSD.dir/build.make:370: recipe for target 'cyliSD' failed make[2]: [cyliSD] Error 1 CMakeFiles/Makefile2:99: recipe for target 'CMakeFiles/cyliSD.dir/all' failed make[1]: [CMakeFiles/cyliSD.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2

Thanks in advance

tkittel commented 3 years ago

Sorry, but that doesn't seem to have anything to do with NCrystal. At best it looks like a report for Geant4, but in any case you need to provide a lot more info about what you are doing before anyone will be able to help you there.

rahulm41 commented 3 years ago

Sorry, but that doesn't seem to have anything to do with NCrystal. At best it looks like a report for Geant4, but in any case you need to provide a lot more info about what you are doing before anyone will be able to help you there.

first of all thanks for responding. I am doing a project in which I am calibrating the efficiencies of scintillation detector. I have used Standard package now I want to do the same work using lowEnergyEm package when i am applying this package i am getting the same error like- ExN01PhysicsList.cc:(.text+0x54f): undefined reference to G4LowEnergyIonisation::ActivateAuger(bool)' ExN01PhysicsList.cc:(.text+0x578): undefined reference toG4LowEnergyIonisation::SetCutForLowEnSecPhotons(double)'

tkittel commented 3 years ago

As I wrote, this is an issue for the Geant4 project, not NCrystal.

rahulm41 commented 3 years ago

Now i am confused, have I posted this isue on right platfarm?

tkittel commented 3 years ago

Not sure what you mean by that, but for the third time: you have NOT posted your issue in the right place. This is an issue tracker for NCrystal, you are having issues with non-NCrystal Geant4.

rahulm41 commented 3 years ago

Thanks Kittel, Now I know from where I can get solution of my problems in Github.