This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Can code compiled with g++ 3.3.1 run with earlier versions of compiler runtime environment?
- From: "Arora, Sudhanshu" <sarora at informatica dot com>
- To: "James E Wilson" <wilson at specifixinc dot com>,"Rathi, Dinesh" <drathi at informatica dot com>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Fri, 10 Sep 2004 12:23:01 +0530
- Subject: RE: Can code compiled with g++ 3.3.1 run with earlier versions of compiler runtime environment?
Thanks a lot for your reply. But I don't understand what do you mean by 'configure gcc --disable-shared'. I tried this option in my env and it doesn't work. Do I have to do something else to make this work? Is it equivalent to static option in gcc. i.e will it create static libs for me instead of dynamic libs?
Thanks,
Sudhanshu
-----Original Message-----
From: James E Wilson [mailto:wilson@specifixinc.com]
Sent: Friday, September 10, 2004 3:21 AM
To: Rathi, Dinesh
Cc: gcc@gcc.gnu.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
your application.
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
anything separately.
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