User forums > General (but related to Code::Blocks)
r13615 fails to compile with wxWidgets-3.3.0.0
everSome:
Seems wxWidgets-3.3.0.0 has gotten stricter in checking usage of macros such as _() and friends. In particular, sdk/pluginmanager.cpp line 764 doesn't work.:
static wxString RemoveCRAndTranslate(const wxString& value)
{
wxString Result(value);
Result.Replace("\r\n", "\n");
return _(Result);
}
See https://wxwidgets.org/help/msgid-literals/ for details.
ollydbg:
Thanks, so it looks like _() is not allowed by passing a wxString as argument.
How do we fix that issue in the function: RemoveCRAndTranslate()? Just remove the _() macro?
everSome:
Maybe use something like:
const wxString& wxGetTranslation ( const wxString & string,
const wxString & domain = wxEmptyString,
const wxString & context = wxEmptyString
)
as it takes a wxString as input.
Miguel Gimenez:
Yes, wxGetTranslation() is the recommended method; see p.e this PR.
Miguel Gimenez:
I am fixing those issues, will commit in a while...
Navigation
[0] Message Index
[#] Next page
Go to full version