On Thursday 14 July 2005 04:37, Larry Battraw wrote: > From a little more digging it looks like it's due to problems with > ordering/scope. For example, the first error for "SegmentToolBox* > getToolBox();" (line 83 of segmenttool.h) goes away once the prototype > (?) is moved below the actual definition on line 97. I'm guessing the > compiler doesn't know what SegmentToolBox is until the definition. > Why this would work for gcc/g++ 3.x and not now seems odd. Things get > much more involved when the next errors pop up in > qcanvasgroupableitem.h; the definitions make references between > sections and moving one tends to break the other.
Can you please try the attached patches? Regards, Pedro
--- segmenttool.h.old 2005-02-27 19:25:22.000000000 +0100 +++ segmenttool.h 2005-07-14 17:16:02.000000000 +0200 @@ -45,6 +45,15 @@ // Segment Tools ////////////////////////////////////////////////////////////////////// +class SegmentToolBox; +class SegmentPencil; +class SegmentEraser; +class SegmentMover; +class SegmentResizer; +class SegmentSelector; +class SegmentSplitter; +class SegmentJoiner; + // Allow the tools to share the Selector tool's selection // through these. //
--- qcanvasgroupableitem.h.old 2005-02-09 22:12:09.000000000 +0100 +++ qcanvasgroupableitem.h 2005-07-14 17:17:27.000000000 +0200 @@ -24,6 +24,12 @@ #include <qcanvas.h> +class QCanvasItemGroup; +class QCanvasLineGroupable; +class QCanvasRectangleGroupable; +class QCanvasTextGroupable; +class QCanvasSpriteGroupable; + /** * This class is meant to be inherited by QCanvasItem children to make * them groupable.
