Page 1 of 1

How to send output?

Posted: Fri Feb 17, 2012 10:49 pm
by FlyingIsFun1217
Hey,

I'm attempting to have output from my program to to the terminal. First I tried with cout, but that seems to only send the output once the program closes. I've been messing around with wxMessageOutput, but my program segfaults when the functon containing Printf(wxT("")) is called. Is there an easy way of just sending output to the terminal (standard output)?

FlyingIsFun1217

Re: How to send output?

Posted: Fri Feb 17, 2012 11:00 pm
by DavidHart
Hi,

I normally use one of the wxLog functions e.g. wxLogDebug, but cout << foo << endl; should work too.

Regards,

David

Re: How to send output?

Posted: Sat Feb 18, 2012 12:14 am
by FlyingIsFun1217
Thanks, I was missing the endl before, which was ultimately the problem.

FlyingIsFun1217