This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: g++ adds -lstdc++ automatically?
- To: Ari dot Inki at iki dot fi
- Subject: Re: g++ adds -lstdc++ automatically?
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 29 Jan 2000 19:58:07 -0200
- Cc: gcc-help at gcc dot gnu dot org
- References: <Pine.LNX.4.10.10001281549220.6749-100000@dftiger>
On Jan 28, 2000, Ari Inki <Ari.Inki@iki.fi> wrote:
> it'd seem that g++ feeds -lstdc++ automatically to ld. We're using
> egcs-1.1.2 plus a third party stl lib, which never gets used since
> -lstdc++ precedes it.
-lstdc++ is always added after any user-specified libraries. Just
add -ltheotherstl to the linking command.
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,computer}.org
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them