Thanks Tim, I think linking statically is a good idea. But I have never done it yet. Do you have any ideas of how to link with a C lib statically? Samples? regards, George ----- Original Message ---- From: Tim Prince <tprince@xxxxxxxxxxxxx> To: Lin George <george4academic@xxxxxxxxx> Cc: gcc-help@xxxxxxxxxxx Sent: Thursday, February 8, 2007 9:42:46 PM Subject: Re: Why a specific gcc runtime is needed? Lin George wrote: > Hello everyone, > > > Why running a program on a specific platform (Linux), there are runtime errors which mentions that specific LIBC runtime version is required (for example, GLIBC_2.3.3). > > I think C runtime should be compatible (means using one version of gcc to build a program, it should be able to run on platform which contains another version of gcc runtime). I am not sure whether this error is caused by some wrongly used compile/link options (which binds this program to specific C runtime version)? > > > Maybe you think glibc should never make incompatible version changes, but this is not under the control of gcc. You may be able to make a static linked build against a newer glibc and be able to run on a target which doesn't have that glibc installed, but I would say this is still outside the scope of gcc. ____________________________________________________________________________________ Looking for earth-friendly autos? Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/