[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: specifying -rpath-link in

From: Ralf Wildenhues
Subject: Re: specifying -rpath-link in
Date: Fri, 1 Feb 2008 20:35:05 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

* Simbasaurus wrote on Fri, Feb 01, 2008 at 11:04:39AM CET:
> depends on, and main depends on
> The in myproject/src/lib2 is :
> bin_PROGRAMS =
> libmylib2_so_SOURCES = s2.cpp
> libmylib2_so_CXXFLAGS = -shared -fPIC -Wall -O0 -I../lib1
> libmylib2_so_DEPENDENCIES = ../lib1/
> libmylib2_so_LDFLAGS = -L../lib1 -lmylib1 -Wl,-rpath-link,../lib1
> BUT i always get this warning when i compile:
> /usr/bin/ld: warning:, needed by
> myproject/src/lib2/, not found (try using -rpath or -rpath-link)

What command outputs this?  Does the library exist at this

> And also the symbols from are undefined when i try to build
> main.
> Does anyone have an insight regarding this situation?

Why are you not using Libtool?  Put AC_PROG_LIBTOOL in, run
libtoolize, and use this in
  libmylib2_la_SOURCES = s2.cpp
  libmylib2_la_CPPFLAGS = -I../lib1
  libmylib2_la_CXXFLAGS = -Wall -O0
  libmylib2_so_LIBADD = ../lib1/

You can then drop the libmylib2_so_DEPENDENCIES setting, too.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]