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