libstdc++.so: undefined reference to

Ian Lance Taylor iant@google.com
Thu Jun 10 21:44:00 GMT 2010


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



More information about the Gcc-help mailing list