RE: [ROOT] Failed to load Dynamic link library

From: Philippe Canal (pcanal@fnal.gov)
Date: Thu Oct 21 2004 - 06:21:58 MEST


Hi,

You need load a shared library that implements the function
GetMomIndex(float) (it can be (but does not have to be) implemented in
AnaBeam.C)

Cheers,
Philippe

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch [mailto:owner-roottalk@pcroot.cern.ch]
On Behalf Of potlog@he.jinr.ru
Sent: Wednesday, October 20, 2004 5:19 AM
To: roottalk@pcroot.cern.ch
Subject: [ROOT] Failed to load Dynamic link library

Hello,

I use Root 3.10/02 in Linux Mandrake with compiler gcc-3.3.2
I'm trying to compile a AnaBeam.C file (the file .tar includes
AnaBeam.C and AnaBeam.h). When I issue
root[] .L Selector.C+
I obtain the following answer


Info in <TUnixSystem::ACLiC>: creating shared library
/home/mihai/GSI/root/./AnaBeam_C.so
dlopen error:
/home/mihai/GSI/root/./AnaBeam_C.so: undefined symbol: _Z11GetMomIndexf
Load Error: Failed to load Dynamic link library
/home/Mihai/GSI/root/./AnaBeam_c.so
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/../../../crt1.o(.text+0x18):
In function `_start':
../sysdeps/i386/elf/start.S: undefined reference to 'main'
/home/mihai/GSI/root/./filegebo1d.o(.text+0x29c2): In function
'G_filegebo1d_7_44(G_value*, char const*, G_param*, int)':
:undefined reference to 'GetMomIndex(float)'
/home/mihai/GSI/root/./libLmd.so: undefined reference to
'LmdFile::EventLoop()'
collect2: ld returned 1 exit status
*** Interpreter error recovered ***


What can I do?
Thank you very much in advance for your help.



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:10 MET