I have compiled wxwidgets 2.6.4 and wxd 0.12 using mingw, gdc and cygwin on windows xp.
But all wxd samples start with a console window at the background.
Is this is a current "feature" of wxd or I have missed something?
Is there any way to hide it?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The corresponding msvc option is /subsystem:windows, others tool chains use variations of this. msvc will also suppress the console by default if you define WinMain instead of main.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have compiled wxwidgets 2.6.4 and wxd 0.12 using mingw, gdc and cygwin on windows xp.
But all wxd samples start with a console window at the background.
Is this is a current "feature" of wxd or I have missed something?
Is there any way to hide it?
A flag in the exe header decides whether to open a console or not. There are some gcc options to disable the console:
-mwindows
but that's deprecated, the newer and longer one is:
-Wl,subsystem,windows
Or, if using ld directly:
http://sourceware.org/binutils/docs/ld/Options.html#index-g_t_002d_002dsubsystem-295
The corresponding msvc option is /subsystem:windows, others tool chains use variations of this. msvc will also suppress the console by default if you define WinMain instead of main.
Thanks! It helped.
It might be a good way to set these flags by default in supplied samples.