Author Topic: cmdlineparser (linux)  (Read 6203 times)

grv575

  • Guest
cmdlineparser (linux)
« on: September 09, 2005, 04:52:09 am »
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

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

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.