This is the mail archive of the 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]
Other format: [Raw text]

Fwd: error in loading rpm compiled with gcc 4.5

---------- Forwarded message ----------
From: Preeti Sharma <>
Date: Fri, Jul 30, 2010 at 9:40 PM
Subject: Re: error in loading rpm compiled with gcc 4.5
To: Ian Lance Taylor <>

Hello Lan,

It should be picking up the same since I am compiling and installing
on the same machine with the ?same env variables .
I did set LD_LIBRARY_PATH and also set /etc/ but still
cannot root cause this error


On Sun, Jul 25, 2010 at 12:35 PM, Ian Lance Taylor <> wrote:
> Preeti Sharma <> writes:
>> I compiled our application with gcc 4.5 and now when I load the rpm I
>> get the following error:
>> error: Failed dependencies:
>> ? ? ? ? is needed by ........
>> It was using gcc 4.1 before.
>> Any pointers on what path/links need to be fixed to get over this.
> The dynamic linker needs to pick up the same that the
> regular saw when it linked your program. ?Well, it doesn't have to be
> the exact same one, but it needs to be from the same or a newer version
> of gcc. ?In this case you are getting the from an older
> version of gcc, presumably the one installed on your system. ?You need
> to use the LD_LIBRARY_PATH environment variable or modify
> to pick up the newer one instead.
> Or you need to build libstdc++ statically, or link against it
> statically.
> Ian

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