This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [Fwd: aix, dlopen(NULL, .), and gcc]
- To: Scott Dudley <scott at telesoft dot com>
- Subject: Re: [Fwd: aix, dlopen(NULL, .), and gcc]
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 14 Nov 2000 01:50:55 -0200
- Cc: gcc-help at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <3A10AB1C.B6E6678D@telesoft.com>
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