If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
A more general answer is to not use printf. There is a wxPrintf which copes with wxChar and wxChar*; or you can use e.g. wxLogDebug, to which you can pass s.c_str().