automake
[Top][All Lists]
Advanced

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

Re: question about sources in multiple directories


From: Michael Bletzinger
Subject: Re: question about sources in multiple directories
Date: Fri, 09 Feb 2001 18:42:27 -0600

Please post your Makefile.am's and I'll take a look.

        Michael

"Matthew R. MacIntyre" wrote:
> 
> On Fri, 9 Feb 2001, Michael Bletzinger wrote:
> >
> > Wrap your objects in a noinstall library and have the test programs link
> > with it.
> >
> > ie.
> >
> > in your C++ directory:
> > noinst_LIBRARIES = libMyCplusplus.a
> >
> > in your test directory:
> >
> > testprogram_LDADD = -D../C++ directory -lMyCplusplus
> 
> Ok, tried that.  I had to change testprogram_LDADD to testprogram_LDFLAGS,
> and fix a few other autoconf errors, and then I got this error when
> building:
> 
> make: *** No rule to make target `libArray.a.c', needed by `libArray.a.o'.
> Stop.
> 
> Seems that it wants to compile the library as a C library, not a C++
> library.
> 
> Any other ideas?
> 
> Thanks,
> 
> -matt

-- 
------------------------------------------------------------------
Michael Bletzinger      Software Developer, Alliance Computational
address@hidden  Environment & Security
217 265 5137            NCSA



reply via email to

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