[Mockpp-devel] Re: Compilation with MINGW
Brought to you by:
ewald-arnold
From: Ewald A. <ew...@ew...> - 2006-02-04 12:04:31
|
Hello Jean-Pierre, >d:/dve/tools/mockpp/mockpp-1.11.1/mockpp/examples/mock_greeter.cpp:339: >undefined reference to `CxxTest::Link::active() const' > > >I don't know how to find the method CxxTest::Link::active(). >IS it in CPPunit ? (installed on my machine) > > > I just verified with cygwin. I had the strange problem that the wrapper executable did not compile due to missing prototypes for strlen and the like. But after tweaking libtool by adding "#include <string.h>" everything compiled and ran flawlessly. Mingw and cygwin share the same basis, so this is a bit puzzeling for me. I will try to install and verify with mingw environment. In the meanwhile I suggest to run run-configure-ascii.sh to setup the files. This is what I always do. You could also add CXXTEST_EXPORT to the sources to enforce exporting the symbols. I am not experienced in mingw but windows platforms need exported symbols whereas Linux does not. I have no idea what happens in mixed environments. All I can say is, BCB5 and MSVC are working. There is also a script bug-report.sh which could tell me more about your problems. Try running it. greets |