#362 wxSortedArrayString and wxArrayString are separate classes now in wxWidgets 3.0.0

1.0.0.0
closed-fixed
Nikolay
None
5
2014-07-28
2014-04-23
Anonymous
No

I get the following error when trying to build the latest SVN trunk (r6404) on Arch Linux x64:

./src/currencydialog.cpp: In member function bool mmCurrencyDialog::Create(wxWindow*, wxWindowID, const wxString&, const wxPoint&, const wxSize&, long int):
./src/currencydialog.cpp:73:100: error: no matching function for call to mmSingleChoiceDialog::mmSingleChoiceDialog(mmCurrencyDialog* const, const wxString&, const wxString&, wxSortedArrayString&)
         mmSingleChoiceDialog select_currency_name(this, _("Currency name"), _("Select Currency"), c);
                                                                                                    ^
./src/currencydialog.cpp:73:100: note: candidates are:
In file included from ./src/currencydialog.cpp:27:0:
./src/mmsinglechoicedialog.h:39:5: note: mmSingleChoiceDialog::mmSingleChoiceDialog(wxWindow*, DB_Table_ACCOUNTLIST_V1::Data_Set)
     mmSingleChoiceDialog(wxWindow *parent
     ^
./src/mmsinglechoicedialog.h:39:5: note:   candidate expects 2 arguments, 4 provided
./src/mmsinglechoicedialog.h:31:5: note: mmSingleChoiceDialog::mmSingleChoiceDialog(wxWindow*, const wxString&, const wxString&, const wxArrayString&)
     mmSingleChoiceDialog(wxWindow *parent
     ^
./src/mmsinglechoicedialog.h:31:5: note:   no known conversion for argument 4 from wxSortedArrayString to const wxArrayString&
./src/mmsinglechoicedialog.h:30:5: note: mmSingleChoiceDialog::mmSingleChoiceDialog()
     mmSingleChoiceDialog(){}
     ^
./src/mmsinglechoicedialog.h:30:5: note:   candidate expects 0 arguments, 4 provided
Makefile:516: recipe for target 'mmex_currencydialog.o' failed
make: *** [mmex_currencydialog.o] Error 1

I think this is because wxSortedArrayString no longer derives from wxArrayString in wxWidgets 3.0.0. Please see:

http://docs.wxwidgets.org/3.0/overview_container.html
http://docs.wxwidgets.org/trunk/classwx_sorted_array_string.html
http://docs.wxwidgets.org/trunk/classwx_array_string.html

Related

Bugs: #362

Discussion

  • Nikolay

    Nikolay - 2014-04-23
    • status: open --> open-accepted
    • assigned_to: Nikolay
     
  • Anonymous - 2014-04-23

    Thank you, this has been fixed.

     
  • Nikolay

    Nikolay - 2014-04-23
    • status: open-accepted --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks