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. |
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 |
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 |
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??? |
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... |
Quote:
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. |