Confused by Multilib on AIX
David Edelsohn
dje@watson.ibm.com
Thu Oct 8 22:06:00 GMT 1998
>>>>> Frank Pilhofer writes:
Frank> My problem is that these libraries refuse to load at runtime. If you
Frank> want to dynamically load a module that is linked against one of the
Frank> afore-mentioned libstdc++ versions into a main program that is *not*
Frank> linked against libstdc++ (meaning that libstdc++ is supposed to be
Frank> loaded at runtime), dlopen() reports "Exec format error."
Frank> The same happens when you try to dlopen() libstdc++ directly.
One thing that comes to mind is this is AIX, not Solaris. AIX's
original runtime loading functionality is supplied by the load() system
call, not dlopen(). I thought that dlopen() was suppose to work with
shared objects, but maybe it requires additional / different shared
library linking options. Have you used the AIX "dump" command to inspect
the shared object to see what it contains?
David
More information about the Gcc
mailing list