Re: question about sources in multiple directories

2001-02-11 Thread Tom Tromey
> "Matthew" == Matthew R MacIntyre <[EMAIL PROTECTED]> writes: Tom> This isn't really enough information to go on. How about Tom> posting the relevant section of your Makefile.am? Matthew> I think I've got it figured out, but if this is not the Matthew> preferred solution, please let me kno

Re: question about sources in multiple directories

2001-02-10 Thread Matthew R. MacIntyre
Hi, > "Tom" == Tom Tromey <[EMAIL PROTECTED]> writes: Tom> This isn't really enough information to go on. How about Tom> posting the relevant section of your Makefile.am? I think I've got it figured out, but if this is not the preferred solution, please let me know what the best w

Re: question about sources in multiple directories

2001-02-10 Thread Tom Tromey
> "Matthew" == Matthew R MacIntyre <[EMAIL PROTECTED]> writes: Matthew> Ok, tried that. I had to change testprogram_LDADD to Matthew> testprogram_LDFLAGS, and fix a few other autoconf errors, and Matthew> then I got this error when building: Matthew> make: *** No rule to make target `libArr

Re: question about sources in multiple directories

2001-02-10 Thread Tom Tromey
> "Matthew" == Matthew R MacIntyre <[EMAIL PROTECTED]> writes: Matthew> How can I get automake setup the Makefile in the test/ Matthew> directory to link with the objects in the src/ directory? You'd think that this would work: AUTOMAKE_OPTIONS = subdir-objects check_PROGRAMS = test

Re: question about sources in multiple directories

2001-02-09 Thread Michael Bletzinger
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: > > noins

Re: question about sources in multiple directories

2001-02-09 Thread Lars J. Aas
On Fri, Feb 09, 2001 at 05:08:48PM -0500, Matthew R. MacIntyre wrote: : > testprogram_LDADD = -D../C++ directory -lMyCplusplus : : Ok, tried that. I had to change testprogram_LDADD to testprogram_LDFLAGS, It should be LIBADD. Lars J -- Innovation is one percent inspiration and ninetynine pe

Re: question about sources in multiple directories

2001-02-09 Thread Matthew R. MacIntyre
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, t

Re: question about sources in multiple directories

2001-02-09 Thread Michael Bletzinger
"Matthew R. MacIntyre" wrote: > > Hi, > > I'm sure there is a fairly easy way to do this, but I just can't figure it > out. I was hoping someone here could help me. > > I've got some c++ classes in my project's src/ directory, and I want to > write some little driver programs in the test/ dire

question about sources in multiple directories

2001-02-09 Thread Matthew R. MacIntyre
Hi, I'm sure there is a fairly easy way to do this, but I just can't figure it out. I was hoping someone here could help me. I've got some c++ classes in my project's src/ directory, and I want to write some little driver programs in the test/ directory to show that the classes behave as expec