This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: About libstdc++ link staticlly
- To: greg zhang <gregzh at yahoo dot com>
- Subject: Re: About libstdc++ link staticlly
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 09 Mar 2000 21:59:15 -0300
- Cc: help-gcc at gnu dot org
- References: <20000308211734.7974.qmail@web1610.mail.yahoo.com>
On Mar 8, 2000, greg zhang <gregzh@yahoo.com> wrote:
> To a normal project(I mean exe module), I can do it
> with just removing libstdc++.so.2.8.1.1., gcc will
> link libstdc++.a archive file automaticlly.
> Text relocation remains reference file
> against symbol
> <unknown> ..../XXX.o
> fprintf ..../XXX.o
> ld: fatal: relocation remains against allocatable but
> non-writable sections.
> I don't know how to fix it?
You'd have to compile all objects of the static libstdc++ with -fPIC
to be able to link a shared library with it.
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva/ Enjoy Guaranį
Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me