This is the mail archive of the
mailing list for the GCC project.
RE: Can code compiled with g++ 3.3.1 run with earlier versions of compiler runtime environment?
- From: "Rathi, Dinesh" <drathi at informatica dot com>
- To: "James E Wilson" <wilson at specifixinc dot com>
- Cc: <gcc at gcc dot gnu dot org>,"Arora, Sudhanshu" <sarora at informatica dot com>
- Date: Fri, 10 Sep 2004 12:02:09 +0530
- Subject: RE: Can code compiled with g++ 3.3.1 run with earlier versions of compiler runtime environment?
Thanks a lot for the response ! Just one quick question, are the binaries for libstdc++ available standalone ? I mean can I ask my client to get it from some third party site (only the new libstdc++ and not new compiler). I wish to avoid redistribution or static linking.
From: James E Wilson [mailto:email@example.com]
Sent: Friday, September 10, 2004 3:21 AM
To: Rathi, Dinesh
Cc: firstname.lastname@example.org; Arora, Sudhanshu
Subject: Re: Can code compiled with g++ 3.3.1 run with earlier versions
of compiler runtime environment?
Rathi, Dinesh wrote:
> I have an application built with g++ 3.3.1 (Redhat Linux) and I was
> trying to run it on a machine with g++ 2.9.x installed. I get an
> error related to libstdc++.so.5 that the library was not found.
You can make this work if you provide a copy of libstdc++ along with
A simpler way to make this work is to configure gcc --disable-shared.
This will give you a statically compiled libstdc++ which you can link
into your application. In this case, there is no need to distribute
If you do distribute libstdc++, then you should check to see if this has
GPL implications. You might need to distribute gcc sources also, or
provide an offer to get the gcc sources. You might want to consult with
a lawyer on this matter.
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com