Re: Undefined symbol when compiling with egcs under RH Linux 5.1

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Nov 06 1998 - 08:10:05 MET


Maurik Holtrop wrote:
> 
> Dear ROOT,
> 
> I have a code (too long to add to this post) that compiles and runs
> without problems on the SunOS platform using the native CC compiler.
> When I compile this code under Linux with egcs, I get the following
> error:
> 
> bos2root: error in loading shared libraries
> /home/maurik/lib/Linux/libClasEvent.so: undefined symbol:
> Close__7TObjectPc
> 
> Using "nm" I can not find ANY reference to symbol Close__7TObjectPc in
> any object or library.
> 
> Does anybody have a suggestion how I may solve this problem?
> 
> By the way: the entire root library recompiles, created a "root"
> executable, all the test code works... The compiler is probably ok, but
> why this strange object missing?
> 
> Thank you much,
> 

Hi Maurik,
I suspect that you are not compiling your class with the same
compiler options used to compile the Root system.
In particular, under egcs, we compile the libraries with the
options -fno-rtti -fno-exceptions

Rene Brun



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:39 MET