Hi,
there is a bug in the documentation for the money example:
http://cppunit.sourceforge.net/doc/lastest/money_example.html#sec_setting_unix
It says:
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
The last two lines must be substituted by this line:
MoneyApp_LDFLAGS = $(CPPUNIT_LIBS) -ldl
Otherwise it does not compile.
Thanks
Markus
|