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: linking problems with shared objects


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


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