This is the mail archive of the gcc-help@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: g++ adds -lstdc++ automatically?


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


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