This page is intented for user to contribute their findings about building cppunit.
Heading format:
{{{Platform, compiler version
./configure specific options (if any)
 * Notes concerning encountered issues. Unless otherwise stated, it is assumed that the following steps works:
  make; make check
}}}

[[TableOfContents]]

== SunOS 5.8, CC 5.5 ==
./configure CXX=CC CXXFLAGS="-mt -xtarget=generic -g -features=no%transitions -xildoff" LD=CC LDFLAGS=-xildoff 

 * make install fail due to the use of 'cp -dpR' (-d is not accepted)

== IBM AIX 5.1, VACPP 6.0 ==
./configure

 * lots of warning during link (duplicate symbol).

== Microsoft Visual C++ .NET ==

 * The DSPlugin does not build for .NET (It works for MSVC 6 only)
 * If you want build integration (being able to double click on errors) base your test application on 'simple' from the examples. Then add a post buidl step (Properties -> Build Events -> Post-Build Step) of "$(Target``Path)". This will give you output like 
{{{
------ Build started: Project: simple, Configuration: Debug Win32 ------

Linking...
Performing Post-Build Event...
ExampleTestCase::example : assertion
ExampleTestCase::anotherExample : assertion
ExampleTestCase::testAdd : assertion
ExampleTestCase::testDivideByZero : error
ExampleTestCase::testEquals : assertion
v:\shared\rsunit\cppunit-1.10.2\examples\simple\exampletestcase.cpp(7) : error : Assertion
Test name: ExampleTestCase::example
equality assertion failed
- Expected: 1
- Actual  : 1.1
v:\shared\rsunit\cppunit-1.10.2\examples\simple\exampletestcase.cpp(15) : error : Assertion
Test name: ExampleTestCase::anotherExample
assertion failed
- Expression: 1 == 2
v:\shared\rsunit\cppunit-1.10.2\examples\simple\exampletestcase.cpp(27) : error : Assertion
Test name: ExampleTestCase::testAdd
assertion failed
- Expression: result == 6.0
##Failure Location unknown## : Error
Test name: ExampleTestCase::testDivideByZero
uncaught exception of unknown type
v:\shared\rsunit\cppunit-1.10.2\examples\simple\exampletestcase.cpp(51) : error : Assertion
Test name: ExampleTestCase::testEquals
equality assertion failed
- Expected: 12
- Actual  : 13
Failures !!!
Run: 5   Failure total: 5   Failures: 4   Errors: 1
Project : error PRJ0019: A tool returned an error code from "Performing Post-Build Event..."
}}}
every time you compile. You can double click on the errors to have .NET take you directly to the test that failed.

== Microsoft eMbedded Visual C++ v4 (eVC4) ==

Multiple errors when built with STLport v5.0RC2, 
eg. {{{_construct.h(119): error C2665: 'new': none of the 2 overloads can convert parameter 2 from type 'stlp_std::basic_string<char,stlp_std::char_traits<char>,stlp_std::> *'
   _deque.h(649): see reference to function template instantiation 'void stlp_std::_Copy_Construct(stlp_std::basic_string<char,stlp_std::char_traits<char>,stlp_std::> *,const stlp_std::basic_string<cha
r,stlp_std::char_traits<char>,stlp_std::> &)' being compiled}}}

Can anyone help on this?

''Please post the full set of build errors: attachment:msevc_errors.txt''

== Cygwin w/ gcc 3.3.1 ==
No errors with 1.10.2 and up-to-date Cygwin.  Documentation is in INSTALL-unix, and is out-of-date (no {{{--disable-shared}}} required on configure step).  GCC now gives pretty names, so {{{--disable-typeinfo-name}}} is not required either.

For autoconfig users, the line for {{{configure.ac}}} is {{{AM_PATH_CPPUNIT(1.10.2)}}}.  The command for aclocal is {{{aclocal -I /usr/local/share/aclocal}}}.  To eliminate the aclocal warning about an underquoted definition of AM_PATH_CPPUNIT, edit {{{/usr/src/local/cppunit.m4}}}, changing line 4 from:
{{{
AC_DEFUN(AM_PATH_CPPUNIT,
}}}
to
{{{
AC_DEFUN([AM_PATH_CPPUNIT],
}}}
== Solaris 2.8 64-bit, gcc 3.3.2 ==
export CFLAGS="-m64 -mcpu=v9"; export CXXFLAGS=$CFLAGS; ./configure --libdir=/usr/local/lib/sparcv9

----
