This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: dlopen() under AIX with gcc/g++
- To: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Subject: Re: dlopen() under AIX with gcc/g++
- From: Robert Boehne <rboehne at ricardo-us dot com>
- Date: Sun, 20 May 2001 19:16:12 -0500
- CC: gcc at gcc dot gnu dot org
- Organization: Ricardo Software
- References: <200105081327.JAA22168@makai.watson.ibm.com> <3AF85845.40ACA066@ricardo-us.com> <orofsyjw3i.fsf@guarana.lsd.ic.unicamp.br>
Alexandre Oliva wrote:
>
> On May 8, 2001, Robert Boehne <rboehne@ricardo-us.com> wrote:
>
> > It seems that there are other options getting passed to
> > the AIX linker under the hood, and that gcc does the
> > right thing, but g++ doesn't quite manage.
>
> Did you try `-v' to look for any differences between them? Perhaps it
> has to do with having libstdc++ linked in. Is your libstdc++ shared
> or static?
>
Hmmm, I believe it's static, but how can I tell under AIX?
If I do a 'file' on libstdc++ it replies with the same thing
that it does for libdl.
boreas::/boreas/dlopen-gcc (62)% file /usr/local/lib/libstdc++.a.2.10.0
/usr/local/lib/libstdc++.a.2.10.0: archive (big format)
boreas::/boreas/dlopen-gcc (63)% file /usr/ccs/lib/libdl.a
/usr/ccs/lib/libdl.a: archive (big format)
I have an example here with verbose gcc/g++ linking commands. I don't
see
much that is different, nothing suspicious anyway. Perhaps what I'm
using
just happens to work in C but is technically incorrect. Here is the
source, Makefile and the results. I'm using gcc 2.95.2 downloaded as a
binary from Bull (an AIX freeware site).
Thanks,
Robert
--
Robert Boehne Software Engineer
Ricardo Software Chicago Technical Center
TEL: (630)789-0003 x. 238
FAX: (630)789-0127
email: rboehne@ricardo-us.com
dlopen-gcc.tar.gz