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: Solaris 7/x86 shared libgcc?


On 6 Mar 2000, Alexandre Oliva wrote:

> On Mar  6, 2000, Ben Taylor <bent@clark.net> wrote:
> 
> > When I link with libgcc.a, the shared library won't build because 
> > libgcc.a is a statically linked library.
> 
> What do you mean?  It *is* possible to link shared libraries with
> static libraries on Solaris.  In fact, GCC builds libgcc with -fPIC so
> that, even though libgcc is not a static library, all of its object
> code is position-independent, and it can be added to shared libraries
> without requiring relocation in code sections.

I'm using xmms for my mp3 player and trying to build the modplugxmms
plugin.  

The whole build is something I'm not used to, as it's using the libtool
constructs (which I know nothing about), which is what complains when
I add libgcc to the mix (though I must admit to hacking around the
makefile without really knowing what I'm doing).

When I don't add -lstdc++, when I run, it tells me that cerr is not
a defined function.

This is rather confusing.

If I sent you some output, would that help?

Thanks,

Ben


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