I have problems when compiling r12535 (but probably r12532 is the cause) under Windows XP:
cc : compile of build/obj/sp-skeleton.o required by source: src/sp-skeleton.cpp
...
Make error line 298: problem compiling: In file included from src/sp-skeleton.cpp:27:0: src/sp-skeleton.h:31:5: error: 'SPObjectClass' does not name a type src/sp-skeleton.cpp: In function 'GType sp_skeleton_get_type()': src/sp-skeleton.cpp:48:1: error: 'SP_TYPE_OBJECT' was not declared in this scope src/sp-skeleton.cpp: In function 'void sp_skeleton_class_init(SPSkeletonClass*)': src/sp-skeleton.cpp:53:5: error: 'SPObjectClass' was not declared in this scope src/sp-skeleton.cpp:53:20: error: 'sp_object_class' was not declared in this scope src/sp-skeleton.cpp:53:54: error: expected primary-expression before ')' token src/sp-skeleton.cpp:53:55: error: expected ';' before 'klass' src/sp-skeleton.cpp:55:1: error: expected primary-expression before '<<' token src/sp-skeleton.cpp:55:3: error: expected primary-expression before '<<' token src/sp-skeleton.cpp:55:5: error: expected primary-expression before '<<' token src/sp-skeleton.cpp:55:7: error: expected primary-expression before '<' token src/sp-skeleton.cpp:55:9: error: 'TREE' was not declared in this scope src/sp-skeleton.cpp:56:5: error: expected ';' before 'sp_object_class' src/sp-skeleton.cpp:57:1: error: expected primary-expression before '==' token src/sp-skeleton.cpp:57:3: error: expected primary-expression before '==' token src/sp-skeleton.cpp:57:5: error: expected primary-expression before '==' token src/sp-skeleton.cpp:57:7: error: expected primary-expression before '=' token src/sp-skeleton.cpp:58:5: error: 'skeleton_parent_class' was not declared in this scope src/sp-skeleton.cpp:58:44: error: expected primary-expression before ')' token src/sp-skeleton.cpp:58:45: error: expected ';' before 'g_type_class_peek_parent' src/sp-skeleton.cpp:61:1: error: expected primary-expression before '>>' token src/sp-skeleton.cpp:61:3: error: expected primary-expression before '>>' token src/sp-skeleton.cpp:61:5: error: expected primary-expression before '>>' token src/sp-skeleton.cpp:61:7: error: expected primary-expression before '>' token src/sp-skeleton.cpp:61:9: error: 'MERGE' was not declared in this scope src/sp-skeleton.cpp:61:15: error: 'SOURCE' was not declared in this scope src/sp-skeleton.cpp:62:5: error: expected ';' before 'sp_object_class' src/sp-skeleton.cpp: At global scope: src/sp-skeleton.cpp:51:1: warning: unused parameter 'klass' [-Wunused-parameter] src/sp-skeleton.cpp: In function 'void sp_skeleton_build(SPObject*, SPDocument*, Inkscape::XML::Node*)': src/sp-skeleton.cpp:83:1: error: expected primary-expression before '<<' token src/sp-skeleton.cpp:83:3: error: expected primary-expression before '<<' token src/sp-skeleton.cpp:83:5: error: expected primary-expression before '<<' token src/sp-skeleton.cpp:83:7: error: expected primary-expression before '<' token src/sp-skeleton.cpp:83:9: error: 'TREE' was not declared in this scope src/sp-skeleton.cpp:84:5: error: expected ';' before 'if' src/sp-skeleton.cpp:87:1: error: expected primary-expression before '==' token src/sp-skeleton.cpp:87:3: error: expected primary-expression before '==' token src/sp-skeleton.cpp:87:5: error: expected primary-expression before '==' token src/sp-skeleton.cpp:87:7: error: expected primary-expression before '=' token src/sp-skeleton.cpp:91:1: error: expected primary-expression before '>>' token src/sp-skeleton.cpp:91:3: error: expected primary-expression before '>>' token src/sp-skeleton.cpp:91:5: error: expected primary-expression before '>>' token src/sp-skeleton.cpp:91:7: error: expected primary-expression before '>' token src/sp-skeleton.cpp:91:9: error: 'MERGE' was not declared in this scope src/sp-skeleton.cpp:91:15: error: 'SOURCE' was not declared in this scope src/sp-skeleton.cpp:109:1: error: expected ';' before '}' token src/sp-skeleton.cpp: At global scope: src/sp-skeleton.cpp:80:1: warning: unused parameter 'document' [-Wunused-parameter] src/sp-skeleton.cpp:80:1: warning: unused parameter 'repr' [-Wunused-parameter] src/sp-skeleton.cpp: In function 'void sp_skeleton_release(SPObject*)': src/sp-skeleton.cpp:1 cc : compile of build/obj/display/cairo-utils.o required by source: src/display/cairo-utils.cpp
And:
21:11: error: 'SPObjectClass' was not declared in this scope src/sp-skeleton.cpp:121:26: error: expected primary-expression before ')' token src/sp-skeleton.cpp:121:28: error: expected ')' before 'sp_skeleton_parent_class' src/sp-skeleton.cpp:122:70: error: expected ')' before ';' token src/sp-skeleton.cpp:122:70: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] src/sp-skeleton.cpp: In function 'void sp_skeleton_set(SPObject*, unsigned int, const gchar*)': src/sp-skeleton.cpp:136:11: error: 'SPObjectClass' was not declared in this scope src/sp-skeleton.cpp:136:26: error: expected primary-expression before ')' token src/sp-skeleton.cpp:136:28: error: expected ')' before 'sp_skeleton_parent_class' src/sp-skeleton.cpp:139:1: error: expected ')' before '}' token src/sp-skeleton.cpp:139:1: error: expected primary-expression before '}' token src/sp-skeleton.cpp:139:1: error: expected ';' before '}' token src/sp-skeleton.cpp: In function 'void sp_skeleton_update(SPObject*, SPCtx*, guint)': src/sp-skeleton.cpp:157:11: error: 'SPObjectClass' was not declared in this scope src/sp-skeleton.cpp:157:26: error: expected primary-expression before ')' token src/sp-skeleton.cpp:157:28: error: expected ')' before 'sp_skeleton_parent_class' src/sp-skeleton.cpp:160:1: error: expected ')' before '}' token src/sp-skeleton.cpp:160:1: error: expected primary-expression before '}' token src/sp-skeleton.cpp:160:1: error: expected ';' before '}' token src/sp-skeleton.cpp: At global scope: src/sp-skeleton.cpp:145:1: warning: unused parameter 'ctx' [-Wunused-parameter] src/sp-skeleton.cpp: In function 'Inkscape::XML::Node* sp_skeleton_write(SPObject*, Inkscape::XML::Document*, Inkscape::XML::Node*, guint)': src/sp-skeleton.cpp:181:11: error: 'SPObjectClass' was not declared in this scope src/sp-skeleton.cpp:181:26: error: expected primary-expression before ')' token src/sp-skeleton.cpp:181:28: error: expected ')' before 'sp_skeleton_parent_class' src/sp-skeleton.cpp:185:5: error: expected ')' before 'return' src/sp-skeleton.cpp:185:16: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] src/sp-skeleton.cpp:186:1: error: no return statement in function returning non-void [-Werror=return-type] cc1plus.exe: some warnings being treated as errors
Luca
-- View this message in context: http://inkscape.13.x6.nabble.com/Cppify-Branch-Review-tp4967928p4967992.html Sent from the Inkscape - Dev mailing list archive at Nabble.com.