Hide DOS command window

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
Dust Commander
In need of some credit
In need of some credit
Posts: 1
Joined: Mon Apr 06, 2020 3:14 pm

Hide DOS command window

Post by Dust Commander » Mon Apr 06, 2020 3:25 pm

I am a newbie to wxWidgets. I am building an application with wxCrafter, Codelite and MinGW tdm64-1 5.1.0.

I created a basic windows gui application.

When I run the program, a dos window appears in addition to my Gui. How do I hide the dos window and keep it off the status bar?


User avatar
Posts: 14786
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Hide DOS command window

Post by doublemax » Mon Apr 06, 2020 4:17 pm

This is a linker problem. Your app was built with "Subsystem: Console", while it should use "Subsystem: Windows".

I don't know CodeLite, so i don't know where to find that setting, but maybe this gets you on the right track.

https://stackoverflow.com/questions/444 ... -window-in
Use the source, Luke!

Site Admin
Site Admin
Posts: 3969
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Re: Hide DOS command window

Post by DavidHart » Mon Apr 06, 2020 4:41 pm


I don't use Windows and so I can't test it, but IIRC you need to open your Project Settings dialog on the first, 'General' tab, and tick the 'This program is a GUI application' box.

If I'm wrong, I suggest you ask on the CodeLite forum as this is a CodeLite-specific question.



Post Reply