LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-26-2012, 12:02 AM   #1
summit
Member
 
Registered: Nov 2010
Posts: 59

Rep: Reputation: 0
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.
 
Old 08-29-2012, 11:34 PM   #2
summit
Member
 
Registered: Nov 2010
Posts: 59

Original Poster
Rep: Reputation: 0
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
 
Old 08-30-2012, 12:53 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,039

Rep: Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347
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
 
Old 09-02-2012, 11:37 AM   #4
summit
Member
 
Registered: Nov 2010
Posts: 59

Original Poster
Rep: Reputation: 0
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???
 
Old 09-02-2012, 12:48 PM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,039

Rep: Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347
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...
 
Old 09-04-2012, 11:39 PM   #6
summit
Member
 
Registered: Nov 2010
Posts: 59

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pan64 View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
symbol lookup error: undefined symbol , upon calling C++ executable from matlab SwagatikaPanda Linux - Newbie 0 02-28-2012 06:31 AM
[SOLVED] symbol lookup error: /usr/sbin/httpd: undefined symbol: apr_file_link bagi Slackware 3 05-17-2011 07:49 AM
symbol lookup error: /usr/lib/libavcodec.so.51: undefined symbol: av_crc04C11DB7 priceey Linux - Software 0 05-06-2009 08:14 AM
./firefox-bin :symbol lookup error:/lib/libgthread-2.0.so.0: undefined symbol: arulupsaras Linux - General 1 11-08-2008 04:48 AM
symbol lookup error: /usr/lib/libgtk-x11.2.0.so.0: undefined symbol:... IamI Slackware 17 02-29-2008 11:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration