Duplicate declaration in interface and question

18 views
Skip to first unread message

Mariano Reingart

unread,
Jan 3, 2015, 5:27:02 PM1/3/15
to wx-dev
I'm getting the following error trying to compile wxPython Phoenix due two duplicate declarations in wxRichTextImage (GetOriginalImageSize and onon):

/home/reingart/src/Phoenix/bin/sip-4.14.4-linux -w -o -T -g -I /home/reingart/src/Phoenix/src -I /home/reingart/src/Phoenix/sip/gen -c /tmp/tmp1301a8o0 -b sip/cpp/_richtext.sbf -X pycode_richtext:wx/richtext.py sip/gen/_richtext.sip
sip: sip/gen/richtextbuffer.sip:7166: wxRichTextImage::SetOriginalImageSize() has overloaded functions with the same Python signature
Command '/home/reingart/src/Phoenix/bin/sip-4.14.4-linux -w -o -T -g -I /home/reingart/src/Phoenix/src -I /home/reingart/src/Phoenix/sip/gen -c /tmp/tmp1301a8o0 -b sip/cpp/_richtext.sbf -X pycode_richtext:wx/richtext.py sip/gen/_richtext.sip' failed with exit code 1.

The question is that there are two version of the methods, one with just the declaration, and the other with a minimal implementation.

Which one belongs to interface folder?

Attached are two tentative patches, but I have the doubt chosing the right one.

I could commit this kind of fix if you want (there were other fixes in interfaces applied to test wxQT and wxPython Phoenix)

Best regards

richtextbuffer_if_dup_1.diff
richtextbuffer_if_dup_2.diff
Reply all
Reply to author
Forward
0 new messages