Dear all:
For I am not the administrator, CppUnit was installed into my home directory by using
"configure --prefix=~/mylocal". When I write the example source according to cppunit document
"Money, a step by step example", after typing "make check", Make message me that cppunit header file can not be found.
The cppunit-config has been runned, and the result is OK.
my process is:
aclocal -I ~/mylocal/share/aclocal
autoconf
automake -a
./configure
make check
My 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)
------------------------
My configure.in
-----------------------
dnl Process this file with autoconf to produce a configure script
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)
**************************
Lilin
li...@sa...
Never stop! Step by Step!
**************************
|