User forums > Using Code::Blocks
CB with Wx Widgers giving normal console output
(1/1)
jmClifford:
Hi. From the web (an example from a tutorial by a "Mr Luke") uses WxWidgets (not CB) and gives a console output. The source is attached.
Is this possible with CB and WxWidgets.??
This source (main.cpp) compiles OK. An example of a compile is;
--- Quote ----------------- Clean: Debug in Events (compiler: GNU GCC Compiler)---------------
Cleaned "Events - Debug"
-------------- Build: Debug in Events (compiler: GNU GCC Compiler)---------------
g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -Wall -g -D__WXDEBUG__ -IC:\WxWidgetsSetup\include -IC:\WxWidgetsSetup\lib\gcc_dll\mswud -IC:\WxWidgetsSetup\include -IC:\WxWidgetsSetup\lib\gcc_dll -c C:\u\CodeBlock_C++\wx_WidgetsLuke\04_Events\main.cpp -o obj\Debug\main.o
windres.exe -IC:\WxWidgetsSetup\include -IC:\WxWidgetsSetup\lib\gcc_dll\mswud -J rc -O coff -i C:\u\CODEBL~1\WX_WID~1\04_EVE~1\resource.rc -o obj\Debug\resource.res
g++.exe -LC:\WxWidgetsSetup\lib\gcc_dll -o bin\Debug\Events.exe obj\Debug\main.o obj\Debug\resource.res -mthreads -lwxmsw32ud C:\WxWidgetsSetup\lib\gcc_dll\libwxmsw32ud.a C:\WxWidgetsSetup\lib\gcc_dll\libwxmsw32u.a -mwindows
Output file is bin\Debug\Events.exe with size 828.74 KB
Process terminated with status 0 (0 minute(s), 5 second(s))
0 error(s), 0 warning(s) (0 minute(s), 5 second(s))
--- End quote ---
Regards JC......
Miguel Gimenez:
It is possible, just go to Project->Properties->Build targets and change Type from "GUI application" to "Console application"
Navigation
[0] Message Index
Go to full version