[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help in gcc-4.0.x transition issue

Andreas Tille wrote:
> /home/tillea/debian-maintain/packages/arb/arb-0.0.20050506/INCLUDE/awt_canvas.hxx:67:
> error: 'AWT_canvas' has not been declared
> make[2]: *** [AW_preset.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
> I guess it is a really small problem for people with C++ knowledge and thus
> I hope to get a quick answer here.

The question is whether

        friend class AWT_canvas;

is a declaration of class AWT_canvas. People used to think it is, but
(now) think it only declares it as a friend. So you need to add

class AWT_canvas;

at the beginning of the header file.


P.S. Disclaimer: the explanation is from memory only, and the solution
is not tested.

Reply to: