On Tuesday 12 March 2002 14:50, Sean 'Shaleh' Perry wrote:
> On 12-Mar-2002 Eric Christian Carlsen wrote:
> > I tried to compile blackbox 0.62.1 for hpux and I had some problems. The
> > configure script went fine (we have gcc and c++) but right when it
> > started to compile it gave the following errors:
>
> Not that I am going to suggest you run CVS, but I am curious if it compiles
> any happier.
A little help:
on line 78 of BaseDisplay.hh you are declaring a private struct to the class
BaseDisplay called shape.
on line 81 you are declaring a private member of the class BaseDisplay called
shape.
on line 274 when you inline the call the shape.extensions it has an implied
meaning of :
this->shape.extensions
The compiler doesn't know which "shape" you are referring to. The struct
definition is in the style of C programming. In C++ when you define a
struct, the name of the struct is automatically type qualified. So you now
have a private type called "shape".
line 81 is like saying:
int int.
A compiler will never let you get away with that. A quick solution, for my
understanding of the problem is this.
Because the struct itself is private, I would rename the type-qualified name
to something else. It doesn't matter what. _shape, m_shape, p_shape,
prv_shape, whatever. I think that will fix the problems.
struct _shape {
blah
} shape;
Just my thoughts, and sharing of my small C++ knowledge.
Andy