Has anyone managed to build the CUnit library for Windows?
I want to run the same unit tests under Windows that I have currently developed under linux, so I need a w
For whatever reason, the source archives don't have the support files for Jam.
You can get them from Cunit's SVN repo on SourceForge. You will also
need the linker export definition file (libcunit_dll.def
)
I opted to patch the Jamfiles (for all of the subdirectories) back onto the released 2.1-2 tree. It looks like there are a couple breaking changes / unclosed defects in the SVN trunk.
Once you have the files:
export MINGW=gcc
export JAM_TOOLSET=MINGW
jam.exe -f Jambase libcunit
will build a proper Windows dll.
Anyone interested in building CUnit using Eclipse? I tried and can build it successfully!
[Note]
[Howto]
The answer above is wrong. The correct answer is as follows:
libtoolize
automake --add-missing
autoreconf
./configure --prefix=/mingw
make
make install
nailed it with the following (already had MinGw and MSYS installed)
mkdir c:/tmp
cd CUnit-2.1-2
bash ./configure --prefix=c:/tmp
make
make install
but i only get libcunit.a
not libcunit.dll
i noticed that when i originally built under linux i got a libcunit.so
so looks like only static linking but i think i can live with that