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: dlopen() under AIX with gcc/g++


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


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