RE: [ROOT] Load Error: Failed to load Dynamic link library

From: Philippe Canal (pcanal@fnal.gov)
Date: Tue Jul 29 2003 - 18:32:04 MEST


Hi,

This usually happens when the compiler version used to build ROOT is not the
same as the compiler available in the path (i.e. bash> g++ -v).

Cheers,
Philippe.

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Jose Caballero
Sent: Tuesday, July 29, 2003 10:54 AM
To: roottalk@pcroot.cern.ch
Subject: [ROOT] Load Error: Failed to load Dynamic link library


Hi:

I use Root 3.05/05 in Linux RedHat with compiler g++3.2
I'm trying to compile a Selector.C file (the file .tar includes
Selector.C and Selector.h). When I issue
root[] .L Selector.C+
I obtain the following answer


Info in <TUnixSystem::ACLiC>: creating shared library
/afs/ciemat.es/user/c/caballero/private/ROOT/pruebas/./Selector_C.so
dlopen error:
/afs/ciemat.es/user/c/caballero/private/ROOT/pruebas/./Selector_C.so:
undefined symbol: _ZNSt8ios_baseC2ERKS_
Load Error: Failed to load Dynamic link library
/afs/ciemat.es/user/c/caballero/private/ROOT/pruebas/./Selector_C.so
/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x18): undefined reference to `main'
/afs/ciemat.es/user/c/caballero/private/ROOT/pruebas/./filergZs1w.o: In
function `std::basic_ios<char, std::char_traits<char>
 >::basic_ios[not-in-charge](std::basic_ios<char, std::char_traits<char>
 > const&)':
/afs/ciemat.es/user/c/caballero/private/ROOT/pruebas/./filergZs1w.o(.gnu.lin
konce.t._ZNSt9basic_iosIcSt11char_traitsIcEEC2ERKS2_+0x26):
undefined reference to
`std::ios_base::ios_base[not-in-charge](std::ios_base const&)'
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 : Thu Jan 01 2004 - 17:50:14 MET