automake
[Top][All Lists]
Advanced

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

Re: problem using the .a libs ...


From: Ralf Wildenhues
Subject: Re: problem using the .a libs ...
Date: Mon, 10 Dec 2007 07:35:53 +0100
User-agent: Mutt/1.5.17 (2007-11-13)

Hello Roberto,

* Roberto Alejandro Espí Muñoz wrote on Mon, Dec 10, 2007 at 05:08:46AM CET:
> 
> In the root directory of my project I have this Makefile.am
> 
> link_objects_a = \
>     directory1/libDirectory1.a     directory2/libDirectory2.a
> directory3/libDirectory3.a ... and so on ...
> 
> SUBDIRS = ./directory1 ./directory2 ./directory3 ... and so on ...

Side note: please drop the `./' in front of the directory names.

> bin_PROGRAMS = program
> 
> program_SOURCES = main.cpp
> program_LDADD =  $(link_objects_a)
> 
> program_CXXFLAGS = ......
> program_LDFLAGS = .......
> 
> I get an error of undefined functions in some of the libDirectoryX.a's with
> functions from another libDirectoryX.a.

Hmm; not yet sure what's going on.  Please type
  make
  make

and post the complete output (stdout + stderr) of the second command.
Thanks.

Cheers,
Ralf




reply via email to

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