automake
[Top][All Lists]
Advanced

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

Re: Linking libraries problem


From: Ralf Wildenhues
Subject: Re: Linking libraries problem
Date: Fri, 20 Aug 2010 20:10:30 +0200
User-agent: Mutt/1.5.20 (2010-04-22)

Hello Jesús,

* Jesús wrote on Fri, Aug 20, 2010 at 05:37:58PM CEST:
> make[4]: *** No rule to make target `libA.la', needed by `libB.la'.  Stop.

> * Makefile for libB (simplified):
> 
>   INCLUDES = -I$(top_srcdir)/dirA
>   lib_LTLIBRARIES = libB.la
>   libB_la_SOURCES = srcB.c srcB.h
>   libB_la_LDFLAGS = @LIBB_FLAGS@
>   libB_la_LIBADD = libA.la

Change this last line to be something like
  libB_la_LDADD = ../liba-directory/liba.la

if '../liba-directory' is the relative path from the directory in which
libB is created to the directory in which libA is created.

Then all should be well.  :-)

Hope that helps.

Cheers,
Ralf



reply via email to

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