This is the mail archive of the gcc-help@gcc.gnu.org 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]

Re: libstdc++.so: undefined reference to


lulu he <loloseed@gmail.com> writes:

> I finally fix it by rename libgcc_s.so.1 .
> mv /usr/local/lib64/libgcc_s.so.1 /usr/local/lib64/libgcc_s.so.1.old
>
> Everything is fine!
>
> But why???

A key point here is that the error is not coming from gcc.  It is
coming from the dynamic linker.  The search patch used by the dynamic
linker to find libraries at runtime is different from the search path
used by gcc (really the linker as directed by gcc) to find libraries
at link time.

Ian


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