libtool
[Top][All Lists]
Advanced

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

Re: link_all_deplibs


From: Christoph Wellner
Subject: Re: link_all_deplibs
Date: Sat, 15 Jan 2005 13:11:37 +0100
User-agent: Opera M2/7.54u1 (Linux, build 892)

On Fri, 14 Jan 2005 16:26:22 +0100, Ralf Wildenhues <address@hidden> wrote:

Hi Christoph,

* Christoph Wellner wrote on Fri, Jan 14, 2005 at 04:07:21PM CET:

i have trouble starting my application since I get undefined references.
As source I determined the variable "link_all_deplibs_CXX" wich is
explicitly set to 'no' in libtool.m4.
I'm running libtool-1.5.6 under debian Sarge and the problem is, that the
libtool.m4-file is different from the one that comes with the
libtool-distribution from the homepage.

Yes.  Debian is AFAIK the only distribution that ever sets
link_all_deplibs to no on linux.

My question is, can I set the value of "link_all_deplibs_CXX" by hand, eg
as option in the commandline?

You can either change `libtool.m4' and/or whereever the package you are
talking about stores its m4 macros then rebuild the package or you can
change generated `libtool' -- look for all instances of

link_all_deplibs=yes

and set them to `unknown' or `no' (one at the beginning and several ones
at the end, one for each language -- search for
 ### BEGIN LIBTOOL TAG CONFIG: CXX
).

You could also tell us what specific problem you have encountered, so we
can warn against it or help you (the Debian maintainer usually reads
this list as well :)  or maybe just fix the package you are trying to
build.

Regards,
Ralf

Hi Ralf,

well, I think the problem is on my side. The problem is the following:
I habe libraries libA and libB and my application app. app uses functions from libA and libB, and libA uses functions from libB. So I linked libA against libB and my app against libA. This worked fine, but now I get undefined references, unless I also link libB against app.

I dont't know, if this is intended, since I didn't care much about linking in the past. I also wonder about the output of ldd. I one line, it says "libB => not found" and serveral lines below, it finds libB in the correct directory. This is, well, a little confusing ;)

greetz
Christoph


--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/




reply via email to

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