Use wxPrintf() and remove the c_str() call which is redundant with it instead of using printf() which can't be used with non-POD objects like wxCStrData returned by c_str() in wx 3.0+.
Use wxPrintf() and remove the c_str() call which is redundant with it instead of using printf() which can't be used with non-POD objects like wxCStrData returned by c_str() in wx 3.0+.