RE: building abiword with HP cc/aCC


Subject: RE: building abiword with HP cc/aCC
From: Joaquin Cuenca Abela (cuenca@pacaterie.u-psud.fr)
Date: Wed Jan 16 2002 - 02:59:10 CST


Tapani wrote:
> Hi all,
>
> Perhaps foolhardily I'm trying to build AbiWord 0.9.6.1
> under HP-UX 11.11 using HP's ANSI C and C++ compilers.
> I can work my way through the rather nonportable
> configuration stuff

It works pretty well for several platforms...

> (I do use Gnu make though), and most
> of the stuff compiles cleanly enough, but now I'm stuck
> with abi/src/af/util/xp/ut_map.cpp or actually ut_rbtree.h:
> aCC complains that

That's a bug in your compiler.
The code looks like that

Class UT_RBTree
{
        struct Node;

public:
        class Iterator {
        ...
        };

        ...

        friend class Iterator;
};

UT_RBTree::Iterator is a friend of UT_RBTree, so it has access to nested
classes of UT_RBTree (and one of the is UT_RBTree::Node).

Cheers,

--
Joaquín Cuenca Abela
cuenca@pacaterie.u-psud.fr



This archive was generated by hypermail 2b25 : Wed Jan 16 2002 - 02:56:44 CST