git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24740 
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
 class WXDLLEXPORT wxStreamToTextRedirector
 {
 private:
-    void Init()
+    void Init(wxTextCtrl *text)
     {
         m_sbufOld = m_ostr.rdbuf();
         m_ostr.rdbuf(text);
     wxStreamToTextRedirector(wxTextCtrl *text)
         : m_ostr(wxSTD cout)
     {
-        Init();
+        Init(text);
     }
 
     wxStreamToTextRedirector(wxTextCtrl *text, wxSTD ostream *ostr)
         : m_ostr(*ostr)
     {
-        Init();
+        Init(text);
     }
 
     ~wxStreamToTextRedirector()
 
 //
 // ATTN: you can _not_ use both of these in the same program!
 
+#include <iostream>
+
 wxSTD istream& operator>>(wxSTD istream& is, wxString& WXUNUSED(str))
 {
 #if 0