linking problems with shared objects

Ian Lance Taylor iant@google.com
Tue Oct 2 13:48:00 GMT 2012


On Tue, Oct 2, 2012 at 5:17 AM, Michael <auinger@mpie.de> wrote:

> $ ld program.so
> ld: warning: libsvml.so, needed by /PATH2/libfile3.so, not found (try using
> -rpath or -rpath-link)

Have you tried using -rpath or -rpath-link?

> Its strange to me since the directory is given in the gcc syntax and the
> files are definitely there. So I can not figure out where the problem is,
> but I honestly have to admit that I am not an expert.

See the description of -rpath-link in the linker manual.

Ian



More information about the Gcc-help mailing list