[vlc] Re: vlc 0.6.0 compilation problem

Holger Kummert kummert at nentec.de
Wed Jul 16 13:03:04 CEST 2003


Hi,

On Wed, 16 Jul 2003 22:11:45 +1200 (NZST) Richard Stevenson <richard at alternativeuniverse.net> wrote:
RS> Menu::CreateChoicesMenu(char *, vlc_object_t *)':
RS> modules/gui/wxwindows/menus.cpp:521: ambiguous overload for `char *& ?
RS> char *& : wxString'
RS> modules/gui/wxwindows/menus.cpp:521: candidates are: operator ?:(bool,
RS> wxString, wxString) <builtin>
RS> modules/gui/wxwindows/menus.cpp:521:                 operator ?:(bool,
[...]
RS> 
RS> Can anyone tell me how to fix this, and get vlc up and running?

I got the same compilation problem on Linux 2.4.19 and solved it
by changing the source code in /modules/gui/wxwindows/menus.cpp:515 from

       case VLC_VAR_INTEGER:
          menuitem =
              new wxMenuItemExt( menu, ++i_item_id,
                                 text_list.p_list->p_values[i].psz_string ?
                                 wxU(text_list.p_list->p_values[i].psz_string):
                                 wxString::Format(wxT("%d"),
                                 val_list.p_list->p_values[i].i_int),
                                 wxT(""), wxITEM_RADIO, strdup(psz_var),
                                 p_object->i_object_id,
                                 val_list.p_list->p_values[i], i_type );

to
        case VLC_VAR_INTEGER:
          menuitem =
              new wxMenuItemExt( menu, ++i_item_id,
                                 text_list.p_list->p_values[i].psz_string ?
                                 (wxString)wxU(text_list.p_list->p_values[i].psz_string):
                                 wxString::Format(wxT("%d"),
                                 val_list.p_list->p_values[i].i_int),
                                 wxT(""), wxITEM_RADIO, strdup(psz_var),
                                 p_object->i_object_id,
                                 val_list.p_list->p_values[i], i_type );

HTH,
Holger


-- 
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the vlc mailing list