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

Rene Brun (Rene.Brun@cern.ch)
Fri, 06 Nov 1998 08:10:05 +0100


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