[Fwd: aix, dlopen(NULL, .), and gcc]

Alexandre Oliva aoliva@redhat.com
Mon Nov 13 19:51:00 GMT 2000


On Nov 14, 2000, Scott Dudley <scott@telesoft.com> wrote:

> i'm using gcc 2.95.2 on aix 4.3.3 attempting to use the NULL path
> argument to dlopen().  i've gotten this to work flawlessly on linux but
> have been unsuccessful in my efforts to compile/link on aix.

Some systems require certain options to be given to the linker to
allow a program or library to be dlopened.  I don't know whether
that's the case of AIX.  I suggest that you try to link your program
using GNU libtool, with the flag -export-dynamic, that will be
translated to whatever magic is required for a program or library to
be dlopen-able.

As a matter of fact, this has nothing to do with which compiler you're
using, so this question doesn't belong in a GCC forum.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


More information about the Gcc mailing list