On Fri, Jun 20, 2014 at 7:47 AM, Philipp Überbacher <mu...@tuxfamily.org>
wrote:

> Hi there,
>
> I tried to build wxLua from SVN (r239) with wxGTK 3.0.1 and got an
> error. You'll find a rather complete output at the end of this mail.
>
>
...

[  3%] Building CXX object
> modules/wxstedit/CMakeFiles/wxStEditLib.dir/src/stedit.cpp.o
> /home/murks/cower/wxlua-svn/src/wxlua-svn-build/wxLua/modules/wxstedit/src/stedit.cpp:
> In member function ‘virtual bool wxSTEditor::StartAutoCompleteWord(bool,
> bool)’:
> /home/murks/cower/wxlua-svn/src/wxlua-svn-build/wxLua/modules/wxstedit/src/stedit.cpp:2909:54:
> error: no matching function for call to
> ‘wxSTEditor::DoGetAutoCompleteKeyWords(wxString&, wxSortedArrayString&)’
>              DoGetAutoCompleteKeyWords(root, wordsNear);
>                                                       ^
> /home/murks/cower/wxlua-svn/src/wxlua-svn-build/wxLua/modules/wxstedit/src/stedit.cpp:2909:54:
> note: candidate is:
> /home/murks/cower/wxlua-svn/src/wxlua-svn-build/wxLua/modules/wxstedit/src/stedit.cpp:2769:8:
> note: virtual size_t wxSTEditor::DoGetAutoCompleteKeyWords(const wxString&,
> wxArrayString&)
>  size_t wxSTEditor::DoGetAutoCompleteKeyWords(const wxString& root,
> wxArrayString& wordArray)
>         ^
> /home/murks/cower/wxlua-svn/src/wxlua-svn-build/wxLua/modules/wxstedit/src/stedit.cpp:2769:8:
> note:   no known conversion for argument 2 from ‘wxSortedArrayString’ to
> ‘wxArrayString&’
> In file included from /usr/include/wx-3.0/wx/filefn.h:15:0,
>                  from /usr/include/wx-3.0/wx/utils.h:20,
>                  from /usr/include/wx-3.0/wx/cursor.h:69,
>                  from /usr/include/wx-3.0/wx/event.h:21,
>                  from /usr/include/wx-3.0/wx/window.h:18,
>                  from /usr/include/wx-3.0/wx/menu.h:23,
>                  from
> /home/murks/cower/wxlua-svn/src/wxlua-svn-build/wxLua/modules/wxstedit/src/precomp.h:10,
>                  from
> /home/murks/cower/wxlua-svn/src/wxlua-svn-build/wxLua/modules/wxstedit/src/stedit.cpp:40:
> /usr/include/wx-3.0/wx/arrstr.h:96:10: error: ‘void
> wxSortedArrayString::Sort()’ is private
>      void Sort()
>           ^
> /home/murks/cower/wxlua-svn/src/wxlua-svn-build/wxLua/modules/wxstedit/src/stedit.cpp:2910:28:
> error: within this context
>              wordsNear.Sort();
>                             ^
>

This is very strange, wxSortedArrayString is derived from wxArrayString so
it should convert implicitly and wxArrayString::Sort(bool reverseOrder =
false) is public.

Unless, you have wxUSE_STD_CONTAINERS=1 ? I have not tried that and it
looks like wxSortedArrayString eventually derives from
wxBaseArrayStringBase which wxArrayString derives from in a separate class
hierarchy.

I have committed a blind fix as I don't normally use
wxUSE_STD_CONTAINERS=1. Update wxLua from svn and let me know if that works
for you.

Regards,
    John
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to