Bug #18849 myx_gc_base.cpp / myx_gc_primitives.h fails to compile
Submitted: 6 Apr 2006 14:02 Modified: 13 Apr 2006 11:31
Reporter: John Yodsnukis (Basic Quality Contributor) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Preview Severity:S2 (Serious)
Version:1.0.5beta svn revision 1229 OS:Linux (Linux (Gentoo on PPC))
Assigned to: CPU Architecture:Any

[6 Apr 2006 14:02] John Yodsnukis
Description:
Making all in source
make[3]: Entering directory `./mysql-gui-common/library_gc/source'
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -Wall -Wsign-compare -I../ftgl/include -I../include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2   -I/usr/include/freetype2 -I../auto_arrange/include -DUSE_FONTCONFIG    -g -O2 -MT myx_gc_base.o -MD -MP -MF ".deps/myx_gc_base.Tpo" -c -o myx_gc_base.o myx_gc_base.cpp; \
then mv -f ".deps/myx_gc_base.Tpo" ".deps/myx_gc_base.Po"; else rm -f ".deps/myx_gc_base.Tpo"; exit 1; fi
In file included from ../include/myx_gc_view.h:28,
                 from ../include/myx_gc_canvas.h:26,
                 from myx_gc_base.cpp:24:
../include/myx_gc_primitives.h:70: error: base `CPrimitive' with only non-default constructor in class without a constructor
make[3]: *** [myx_gc_base.o] Error 1

How to repeat:
compile from svn revision 1228 or 1229.

Suggested fix:
Index: mysql-gui-common/library_gc/include/myx_gc_primitives.h
===================================================================
--- mysql-gui-common/library_gc/include/myx_gc_primitives.h     (revision 1229)
+++ mysql-gui-common/library_gc/include/myx_gc_primitives.h     (working copy)
@@ -65,12 +65,12 @@

   virtual void __cdecl setEndPoint(const TVertex& end);
 };
-
+/*
 class GENERIC_CANVAS_API CPolyLine: public CPrimitive
 {

 };
-
+*/
 class GENERIC_CANVAS_API CRectangle: public CPrimitive
 {
 protected:
[7 Apr 2006 21:15] John Yodsnukis
revision 1231 still fails to compile.
[13 Apr 2006 11:31] John Yodsnukis
Solved in revision 123or 1235.