Confused by Multilib on AIX

David Edelsohn dje@watson.ibm.com
Fri Oct 9 18:23:00 GMT 1998


>>>>> Frank Pilhofer writes:

Frank> Well, dlopen() works fine on my own shared objects (created with
Frank> gcc -shared), as long as they don't depend on libstdc++. 
Frank> dlopen() reports "Exec format error."

	I presume that dlopen() is setting errno to "ENOEXEC".  I think
that you need to use the dlerror() function immedaitely after the dlopen()
call failure to determine what the runtime loader really thinks is wrong.

	See the dlopen() and dlerror() documentation.  dlerror()
specifically provides further information for ENOEXEC errors from dlopen().

David



More information about the Gcc mailing list