undefined reference to

Ian Lance Taylor
Thu Jun 10 21:44:00 GMT 2010

lulu he <> writes:

> I finally fix it by rename .
> mv /usr/local/lib64/ /usr/local/lib64/
> 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.


More information about the Gcc-help mailing list