[Cppunit-devel] Configuring CppUnit on HP-UX
Brought to you by:
blep
From: <Sha...@in...> - 2002-04-28 13:21:18
|
Hi guys, First of all, I would like to thank you for producing this great = library. I am using CppUnit 1.6.2 for unit-testing a library developed on Win32 = and 3 Unices (Solaris, HP, and AIX). I am having some problems with the = HP side, because there seems to be a unique configuration there: the = compiler itself does support namespaces, but the standard libraries are = configured _not_ to use namespace std (in newer compiler releases, there = are better libraries, but I am bound to the older ones by = backward-compatibility requirements). Now, the CppUnit configure script assumes that if the compiler supports = namespaces, then the standard library is in namespace std. I've been = thinking that I should solve this by adding a header file defining = namespace std, and including in it (with "using" declarations) every = name the compiler will complain about. Are there better options? Are there solutions to this problem in the more recent versions of = CppUnit? 1.6.2 works fine for me in the other environments, and = upgrading on four platforms is a cost I would much rather avoid. Thanks in advance, Shai. |