chaita - 2005-09-14

hi everyone this is chaitra . i am new to cppunit . i have written a simple test code  and i was trying to run it. my makefile and configure files are shown here.

configure.in

AC_INIT(Makefile.am)
AM_INIT_AUTOMAKE(money,0.1)
AM_PATH_CPPUNIT(1.9.6)
AC_PROG_CXX
AC_PROG_CC
AC_PROG_INSTALL
AC_OUTPUT(Makefile)

Makefile.am

# Rules for the test code (use `make check` to execute)
TESTS = MoneyApp
check_PROGRAMS = $(TESTS)
MoneyApp_SOURCES = Money.h MoneyTest.h MoneyTest.cpp MoneyApp.cpp
MoneyApp_CXXFLAGS = $(CPPUNIT_CFLAGS)
MoneyApp_LDFLAGS = $(CPPUNIT_LIBS)
MoneyApp_LDFLAGS = -ldl

i run it by autoconf, automake and later by make check. but during make check. the errror is shown

/tmp/ccerfQiD.o(.text+0x27c): In function `main':
: undefined reference to `CppUnit::TextTestRunner::~TextTestRunner [in-charge]()'

i am not able to find the reason . please can any one help me on this.

thanking you