[Cppunit-devel] Money example
Brought to you by:
blep
From: D. v. 't O. <dvt...@so...> - 2004-03-24 20:19:57
|
Hello guys, I didn't encounter any problems on getting the cppunit framework to work on windows. But when i tried the money example on Red hat Fedora 1 I couldn't get the example working at first. The site says: # 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 For the Makefile.am But when I did that, automake yield: Makefile.am:7: MoneyApp_LDFLAGS multiply defined in condition TRUE ... Makefile.am:6: ... `MoneyApp_LDFLAGS' previously defined here. At first I ignored this error and tried to 'make check'. Didn't work (I also removed the #include "stdafx.h" since it seems of no use, at least on linux) When i combine the last 2 lines of the makefile like this: MoneyApp_LDFLAGS = $(CPPUNIT_LIBS) -ldl The example runs perfectly fine. Perhaps you guys could update the website. Best regards and keep up the good work :) D. van 't Oever |