Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#4731 closed defect (fixed)

GUI Tools: does not compile on MacOS X 10.6

Reported by: criezy Owned by: fingolfin
Priority: normal Component: Tools
Version: Keywords: build
Cc: Game:

Description

On MacOSX 10.6 (Snow Leopard) with gcc 4.2.1 (the default compiler) I get the following error during the compilation:

gui/main.cpp: In member function ‘void ScummToolsFrame::CreateMenuBar()’: gui/main.cpp:238: error: no match for ‘operator=’ in ‘wxApp::s_macHelpMenuTitleName = "Help"’ /usr/include/wx-2.8/wx/string.h:676: note: candidates are: wxString& wxString::operator=(int) <near match> /usr/include/wx-2.8/wx/string.h:953: note: wxString& wxString::operator=(const wxStringBase&) /usr/include/wx-2.8/wx/string.h:956: note: wxString& wxString::operator=(wxChar) <near match> /usr/include/wx-2.8/wx/string.h:964: note: wxString& wxString::operator=(const wxChar*) /usr/include/wx-2.8/wx/string.h:970: note: wxString& wxString::operator=(const wxWCharBuffer&) /usr/include/wx-2.8/wx/string.h:660: note: wxString& wxString::operator=(const wxString&)

Using the wxT() macro seems to work: wxApp::s_macHelpMenuTitleName = wxT("Help");

The same code (without the modification) compiles file on MacOS X 10.4 with gcc 4.0

Ticket imported from: #2919303. Ticket imported from: bugs/4731.

Change History (2)

comment:1 by fingolfin, 15 years ago

Thanks, fixed.

comment:2 by fingolfin, 15 years ago

Owner: set to fingolfin
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.