This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]