CPPUnit that compiles with Visual C++ 2010

CPPUnit is a unit testing framework that is a port of the popular JUnit framework. Work on it has stalled and there has been no release since 2008. Work has continued on a fork called CPPUnit2.

The last released version of CPPUnit is 1.21.1. I needed it for a project, but compiling it with Visual C++ 2010 ended in lots of errors. I got it compiling after making some changes. This version can be downloaded from here.

The changes are:

  • The DSPlugIn project was removed.
  • The version was changed to 10.0 in the MSDevCallerListCtrl.cpp.
  • Changes made to the naming of .exe, .lib and .dll files produced by the projects in the CPPUnit solution.