g++ adds -lstdc++ automatically?
Alexandre Oliva
oliva@lsd.ic.unicamp.br
Sat Jan 29 13:58:00 GMT 2000
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
More information about the Gcc-help
mailing list