Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

cmdlineparser (linux)

(1/1)

grv575:
app.cpp:61

--- Code: ---#ifdef __WXMSW__
    { wxCMD_LINE_SWITCH, _T("na"), _T("no-check-associations"), _T("don't perform any association checks"), wxCMD_LINE_VAL_NONE, wxCMD_LINE_PARAM_OPTIONAL },
    { wxCMD_LINE_SWITCH, _T("nd"), _T("no-dde"), _T("don't start a DDE server"), wxCMD_LINE_VAL_NONE, wxCMD_LINE_PARAM_OPTIONAL },
#endif

--- End code ---

app.cpp:442

--- Code: --- m_NoDDE = parser.Found(_T("no-dde"), &val);
m_NoAssocs = parser.Found(_T("no-check-associations"), &val);

--- End code ---

The two lines at 442, need an #ifdef __WXMSW__ guard as well.  Otherwise assertions are triggered about unknown switches (no-dde, no-check-associations) on linux.

Navigation

[0] Message Index

Go to full version