Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: Duncan on May 14, 2009, 06:47:46 am
-
Hi I'm using a Windows XP Machine with Code Blocks and the MinGW Compiler.
I've been using SDL for my graphical API lately but for some reason if, for debugging purposes, in my program I try to cout something:
cout << "Ball's X: " ball.x << endl;
I get no output in the console window.
Is there some option that I need to check.. or some other way to get this to work as desired... or is it an unfortunate reality?
Thanks!
-
Searching the forum for "no console output" gave me this thread as first: http://forums.codeblocks.org/index.php/topic,10409.0.html (http://forums.codeblocks.org/index.php/topic,10409.0.html)
Most likely you have the same problem.
For the next time, please search the forum and/or the web first.
-
You get no console output for another reason, and that is because you use SDL. This library redirects standard output and standard error into files. Their documentation explains how to disable this feature (I don't remember, need to #define something...)
-
This worked for me
http://www.libsdl.org/cgi/docwiki.cgi/FAQ_Console