Try to update your wxWidgets CVS there was some bugs apparently.
See these messages.
[wx-dev] wxHtmlWindow and private wxHtmlWindowMouseHelper
-John Labenski
On 4/14/06, John Labenski <jla...@gm...> wrote:
> On 4/14/06, Francesco Montorsi <f18...@ya...> wrote:
> > Hi all,
> > with last CVS I got this:
> >
> > .././bk-deps apg++ -c -o wxbind_lib_wxlua.o -I../modules/wxbind/setup
> > -I../modules -I./.. -I/usr/local/lib/wx/include/gtk2-unicode-release-2.=
7
> > -I/usr/local/include/wx-2.7 -D_FILE_OFFSET_BITS=3D64 -D_LARGE_FILES
> > -D_LARGEFILE_SOURCE=3D1 -D__WXGTK__ -pthread -O2 -march=3Di586 -pipe -=
g0
> > -O2 ../modules/wxbind/src/wxlua.cpp
> > ../modules/wxbind/include/wxlhtmlwin.h:44: error: conflicting return
> > type specified for 'virtual void
> > wxLuaHtmlWindow::OnCellClicked(wxHtmlCell*, wxCoord, wxCoord, const
> > wxMouseEvent&)'
> > /usr/local/include/wx-2.7/wx/html/htmlwin.h:200: error: overriding
> > 'virtual bool wxHtmlWindowMouseHelper::OnCellClicked(wxHtmlCell*,
> > wxCoord, wxCoord, const wxMouseEvent&)'
>
> wxWidgets has changed the signature of this function apparently, my
> copy of 2.6.3 has this.
>
> wxWidgets_26/wxWidgets/include/wx/html/htmlwin.h:
> virtual void OnCellClicked(wxHtmlCell *cell,
>
> > modifying wxlhtmlwin.h:44 to return bool, I then get errors later...
>
> What errors? Can you change it like this and see about the other
> errors? Check that 2,7,0 is the right version to use as well.
>
> #if wxCHECK_VERSION(2,7,0)
> virtual bool OnCellClicked(wxHtmlCell *cell,
> #else //!wxCHECK_VERSION(2,7,0)
> virtual void OnCellClicked(wxHtmlCell *cell,
> #endif // wxCHECK_VERSION(2,7,0)
>
> Thanks,
> John Labenski
>
|