This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Creating shared library...
On Tue, May 11, 1999 at 10:11:16AM -0700, Ernie Billing wrote:
> If I create the library following the FAQ with g++ -shared -o libmine.o
> -fPIC [all the .o's] the link blows up with a whole bunch of unknown
> references to /usr/local/lib/libstdc++.a and the message "ld: fatal:
> relocations remain against allocatable but non-writable sections"
You need to configure egcs with --enable-shared to produce libstdc++
as a shared library. Or build it with -fPIC as well.
r~