As far as I can tell libdl only exists on Glibc (or similar)
based systems. MinGW has libcrtdll (-lcrtdll) which
performs the same functions. I'm not au fait with
automake related configuration but I changed an already
generated Makefile (in src/DllPluginTester) and merely
replaced the two instances of -ldl with -lcrtdll and the
compilation succeeded. I'd imagine it is possible to
determine which library to pull in during the ./configure
procedure?
The only affected files as far as I can see are:
src/DllPluginTester/Makefile
examples/simple/Makefile
Having made these changes, cppunit-1.9.10 now runs
on MinGW although I get warnings from gcc-3.2.2
regarding CPPUNIT_STD_NEED_ALLOCATOR not
being defined in the following files:
include/cppunit/portability/CppUnitSet.h
include/cppunit/portability/CppUnitVector.h
include/cppunit/portability/CppUnitDeque.h
There is also one warning stating that "'class
CppUnit::TestNamer' has virtual functions but non-
virtual destructor" in
include/cppunit/extensions/TestNamer.h
These are only warnings though, the tests compile and
run correctly (on my simple test cases anyway)
Thanks,
Matt.
Logged In: NO
Apologies - I don't know what's causing it but both
dllplugintester.exe and sample.exe cause errors relating to
ntdll.dll...maybe crtdll wasn't the right thing to link to? I'd
suggest the bug is still valid though as -ldl doesn't exist on
MinGW systems.
Cheers,
Matt.