problem creating shared library from C and C++ code

Horst Goeringer (H.Goeringer@gsi.de)
Wed, 24 Mar 1999 17:16:58 +0100


Hi all,

when creating a shared library for ROOT with makeC++SharedLib in
AIX (version 4.1.5 or 4.3.2), I get in some cases an error message
from the linker:

ld: invalid BFD target `nobind'

and the library is not built. This happens when mixing

1. C code (compiled with cc, available in an archive xxx.a), and
2. C++ code (compiled with xlC) containing own classes.

On Linux, a shared library can be created with g++ from the
same codes without problem!
I found no hints in the related AIX documentation (man, info).
Can somebody explain what this error means and how to overcome it?

Thank you, and best regards
Horst

-- 
-----------------------------------------------------------------
Dr. Horst Goeringer                    email: H.Goeringer@gsi.de
GSI Computing Center                     Tel: +49-6159-71-2553
Planckstr. 1                             Fax: +49-6159-71-2986
D-64291 Darmstadt, Germany
-----------------------------------------------------------------