Page 1 of 1

No console window.

Posted: Fri Oct 27, 2006 4:08 am
by bartic
Hello, i developing simple dialog based application for network measurement. using wxWidgets 2.63 and cygwin. uder cygwin everything is ok. but when i try to run application from explorer by clicking on icon(for example). it spawn ugly black console window, running separately with my dialog/frame. this behaviour is same for all wxWidgets sampes, i've tried. I can close it explicitly by calling FreeConsole() in MyApp::OnInit(), but this is not fine for me, because console window blink for short time. i don't wont to cosole window be never open in release version. my wxWidgets was copiled by these commands:

export CC="gcc -mno-cygwin"
export CXX="g++ -mno-cygwin"
../configure --disable-shared --disable-precom-headers

anyway the same result is when i using standart configuration which is using cygwin1.dll. has anybody idea how to resolve this problem?
thanks -bartic-

Posted: Fri Oct 27, 2006 6:20 am
by tiwag
i don't use cygwin but MinGW gcc,
so i'm not 100% shure if it works for you, but i guess it does 8)

if you give the linker option -mwindows
a win app is built which doesn't produce a console window.


Posted: Fri Oct 27, 2006 6:02 pm
by bartic
Thanks a lot, amigo :-), it is exactly resolving my problem.