[Top][All Lists]

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

Linking libraries problem

From: Jesús
Subject: Linking libraries problem
Date: Fri, 20 Aug 2010 17:37:58 +0200
User-agent: Thunderbird (X11/20100623)

Hello, I'm new to the Autotools, and I'm having some trouble to link two
libraries between them. I'll summarize what I need to do and what I'm doing.

I have implemented libA and libB. The libA files are stored in dirA and
libB files in dirB, so they are compiled separately (with different
sub-Makefiles): first I compile libA (successfully) and then libB. But I
need to link libB with libA when compiling libA, and there is where I'm
having problems. Specifically, when doing make, I get this error (I've
translated it approximately, as I get it in a language other than english):

make[4]: *** No rule to make target `', needed by `'.  Stop.

* Makefile for libA (simplified):

  libA_la_SOURCES = srcA.c srcA.h

* Makefile for libB (simplified):

  INCLUDES = -I$(top_srcdir)/dirA
  libB_la_SOURCES = srcB.c srcB.h
  libB_la_LIBADD =

I've tried also with "libB_la_LDADD =" and other several options
that I don't recall now, but I haven't get to the right solution. Could
someone help me?

Thank you.

reply via email to

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