cppunit2 compile error on linux

View: New views
1 Messages — Rating Filter:   Alert me  

cppunit2 compile error on linux

by cppunit-devel mailing list :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Cppunit-devel mailing list
Cppunit-devel@...
https://lists.sourceforge.net/lists/listinfo/cppunit-devel