gnu.gcc.help
[Top] [All Lists]

Re: Diff between GCC 4.1 and 3.2.2(and is 4.1 backwards compatible with

Subject: Re: Diff between GCC 4.1 and 3.2.2(and is 4.1 backwards compatible with 3.2.2
From: Paul Pluzhnikov
Date: Wed, 14 Jun 2006 17:35:18 -0700
Newsgroups: gnu.gcc.help
"g35rider@xxxxxxxxx" <g35rider@xxxxxxxxx> writes:

> Hi I just cant seem to figure out why a 4.1 compiled code on FC5
> wouldnt run on a RH9 GCC 3.2.2-5 version.

Just trust me, it wouldn't.

To understand why, you need to understand external library
versioning, and internal symbol versioning. Both are described in
detail here:
http://docs.sun.com/app/docs/doc/802-6319/6ia12qkf8?a=view

> If its just libraries, cant i
> just copy these new libraries and make the program look into the
> specific dir with new libraries?

No, it's not "just libraries".

> Also would a machine running FC5 + GCC 4.1 be able to run a program
> compiled using RH9 + GCC 3.2.2?

Yes, that's called "backwards compatibility". FC5 is "backwards
compatible", meaning that binaries compiled on previous releases
continue to run. Most UNIX systems have such compatibility (so long
as you link dynamically against system libraries). E.g. Solaris-2.6
binaries happily run on Solaris 10.

I ship a commercial program on Linux, which I build on RedHat-6.2.
I have not seen any system this program will not run on in the last
8 years.

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.

<Prev in Thread] Current Thread [Next in Thread>