No console window. Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
bartic
In need of some credit
In need of some credit
Posts: 2
Joined: Fri Oct 27, 2006 12:20 am

No console window.

Post 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"
export CPPFLAGS="-DCOMPILED_FROM_DSP"
../configure --disable-shared --disable-precom-headers
make

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-
tiwag
Earned some good credits
Earned some good credits
Posts: 123
Joined: Tue Dec 21, 2004 8:51 pm
Location: Austria

Post 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.

brgds
-tiwag
bartic
In need of some credit
In need of some credit
Posts: 2
Joined: Fri Oct 27, 2006 12:20 am

Post by bartic »

Thanks a lot, amigo :-), it is exactly resolving my problem.
-bartic-
Post Reply