dlopen() under AIX with gcc/g++
Robert Boehne
rboehne@ricardo-us.com
Sun May 20 17:16:00 GMT 2001
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dlopen-gcc.tar.gz
Type: application/x-gzip
Size: 10406 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20010520/2e789556/attachment.bin>
More information about the Gcc
mailing list