Hi,
I've checked out cppunit from cvs and followed the
instructions on http://cppunit.sourceforge.net/cppunit-wiki/CppUnit2
but I get the following compile error:
python scons.py platform=linux-gcc
scons: Reading SConscript files ...
Building using PLATFORM = linux-gcc
scons: done reading SConscript files.
scons: Building targets ...
g++ -o buildscons/linux-gcc/src/cpputtest/assertstringtest.o -c
-DCPPTL_NO_AUTOLINK -Iinclude -I. src/cpputtest/assertstringtest.cpp
include/cpput/stringize.h: In function 'std::string CppUT::convertToString(const StringType&)
[with StringType = <unnamed>::StringWrapper]':
include/cpput/assertstring.h:64: instantiated from 'void
CppUT::checkStringEquals(const String1&, const String2&, const
CppUT::Message&) [with String1 = <unnamed>::StringWrapper, String2 =
char [4]]'
src/cpputtest/assertstringtest.cpp:121: instantiated from here
include/cpput/stringize.h:137: error: conversion from
'CppUT::NotConvertibleToStdString' to non-scalar type
'std::basic_string<char, std::char_traits<char>,
std::allocator<char> >' requested
scons: *** [buildscons/linux-gcc/src/cpputtest/assertstringtest.o]
Error 1
scons: building terminated because of errors.
This is my setup:
python scons.py -v
SCons by Steven Knight et al.:
script: v0.96.92.D002, 2006/04/11 07:39:43, by knight on roxbury
engine: v0.96.92.D002, 2006/04/11 07:39:43, by knight on roxbury
Copyright (c) 2001, 2002, 2003, 2004 The SCons Foundation
gcc version 4.1.2 20061007 (prerelease) (Debian 4.1.1-16)
Has anyone experience with cppunit2 on linux? Any help is
appreciated,
Michael
|