LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 01:02 AM   #1
summit
Member
 
Registered: Nov 2010
Posts: 53

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-30-2012, 12:34 AM   #2
summit
Member
 
Registered: Nov 2010
Posts: 53

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, 01:53 AM   #3
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,104

Rep: Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267
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, 12:37 PM   #4
summit
Member
 
Registered: Nov 2010
Posts: 53

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, 01:48 PM   #5
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,104

Rep: Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267
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-05-2012, 12:39 AM   #6
summit
Member
 
Registered: Nov 2010
Posts: 53

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 07:31 AM
[SOLVED] symbol lookup error: /usr/sbin/httpd: undefined symbol: apr_file_link bagi Slackware 3 05-17-2011 08:49 AM
symbol lookup error: /usr/lib/libavcodec.so.51: undefined symbol: av_crc04C11DB7 priceey Linux - Software 0 05-06-2009 09:14 AM
./firefox-bin :symbol lookup error:/lib/libgthread-2.0.so.0: undefined symbol: arulupsaras Linux - General 1 11-08-2008 05:48 AM
symbol lookup error: /usr/lib/libgtk-x11.2.0.so.0: undefined symbol:... IamI Slackware 17 02-29-2008 12:10 PM


All times are GMT -5. The time now is 06:42 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration