This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: linking problems with shared objects
- From: Ian Lance Taylor <iant at google dot com>
- To: Michael <auinger at mpie dot de>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 2 Oct 2012 06:48:38 -0700
- Subject: Re: linking problems with shared objects
- References: <1349180257479-874364.post@n5.nabble.com>
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