LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   undefined symbol: _ZN19G4EmStandardPhysicsC1Ei (https://www.linuxquestions.org/questions/linux-newbie-8/undefined-symbol-_zn19g4emstandardphysicsc1ei-4175418703/)

summit 07-26-2012 12:02 AM

undefined symbol: _ZN19G4EmStandardPhysicsC1Ei
 
Dear Linuxexperts,

I am trying to install geant4.9.5.p01 in Ubuntu 11.10 (GNU/Linux
3.0.0-13-server x86_64).

After successful installation, I complied the example TestEm7.
While running this example after successful compiling, following error message displayed:

../bin/Linux-g++/TestEm7: symbol lookup error:
/root/new/u/ey/perl/g4/geant4.9.5.p01/g4work/tmp/Linux-g++/TestEm7/libTestEm7.so:
undefined symbol: _ZN19G4EmStandardPhysicsC1Ei

Such type of error messages are also getting in running other examples.

Can anyone suggest me how can I sort out this?

Thanks in advance,

Summit.

summit 08-29-2012 11:34 PM

Hello LinuxExperts,

Now I have tried to install Geant4.9.5p01 in Ubuntu 12.04 (64 bit) and getting same error.

Can anyone suggest me how can I sort out this problem.

Thanks in advance,
cheers,

Summit

pan64 08-30-2012 12:53 AM

this undefined symbol is the constructor: G4EmStandardPhysics::G4EmStandardPhysics(int)
So I think it is a linking problem, but I'm not really familiar with geant

summit 09-02-2012 11:37 AM

hello

thanks for reply

I think it may be due to gcc version. how can i install lower version of gcc-4.3.2???
any suggestion pls???

pan64 09-02-2012 12:48 PM

undefined symbol means there is a missing (or maybe more) library, so the compiler cannot link that application. It can be caused by an incorrect command line or by missing files. This missing symbol is part of geant4, so probably you had not built/installed/configured properly geant4 before building your testapp.
Actually I do not know what did you install and what is inside, what was the makefile to build your testapp...

summit 09-04-2012 11:39 PM

Quote:

Originally Posted by pan64 (Post 4770732)
undefined symbol means there is a missing (or maybe more) library, so the compiler cannot link that application. It can be caused by an incorrect command line or by missing files. This missing symbol is part of geant4, so probably you had not built/installed/configured properly geant4 before building your testapp.
Actually I do not know what did you install and what is inside, what was the makefile to build your testapp...

Thanks for reply.

I would like to tell you that when I tried this in 32 bit ubuntu, its working well and also when I tried in 64 SL6, its also working well...what happened in the case of ubuntu 12.04 (64 bit)...i don't know.
So I think...it may be due to gcc version.


All times are GMT -5. The time now is 05:53 PM.