User forums > General (but related to Code::Blocks)

How to see output in a wxWidgets project?

(1/3) > >>

Otto:
Hi,

I would like to know how do I check what was printed with a std::cout in a GUI (wx) during development.
I can't find any output window/view.

I only see output if I run the app outside C::B via CLI.


Thanks.

oBFusCATed:
Set the type of your project to console and it will show you the output :)

Otto:
That didn't work. The output window appears, but nothing is printed.

Jenna:

--- Quote from: Otto on September 25, 2010, 02:31:46 am ---That didn't work. The output window appears, but nothing is printed.

--- End quote ---
I just tested it (on linux) and it works fine.

oBFusCATed:
Hm, if you're on windows you should read here: http://msdn.microsoft.com/en-us/library/ms682073%28VS.85%29.aspx

You need AttachConsole + a way to redirect stdout/stdin to the console... let google be your friend...

Navigation

[0] Message Index

[#] Next page

Go to full version