Author Topic: CB with Wx Widgers giving normal console output  (Read 3774 times)

Offline jmClifford

  • Multiple posting newcomer
  • *
  • Posts: 13
CB with Wx Widgers giving normal console output
« on: April 30, 2024, 08:34:59 am »
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))


Regards JC......

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1634
Re: CB with Wx Widgers giving normal console output
« Reply #1 on: April 30, 2024, 11:21:18 am »
It is possible, just go to Project->Properties->Build targets and change Type from "GUI application" to "Console application"