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
